Convert old aliases and add fish config
This commit is contained in:
parent
4a2c407d25
commit
da3069a152
3 changed files with 30 additions and 25 deletions
|
|
@ -10,30 +10,30 @@
|
|||
#alias dir='ls --color=auto --format=vertical'
|
||||
#alias vdir='ls --color=auto --format=long'
|
||||
|
||||
case `uname` in
|
||||
Linux)
|
||||
if [ "$TERM" != "dumb" ]; then
|
||||
eval "`dircolors -b`"
|
||||
fi
|
||||
alias ls='ls -F --color=auto'
|
||||
alias open='xdg-open'
|
||||
;;
|
||||
Darwin)
|
||||
alias ls='ls -FG'
|
||||
;;
|
||||
FreeBSD)
|
||||
alias ls='ls -FG'
|
||||
;;
|
||||
SunOS)
|
||||
alias ls='ls -F'
|
||||
;;
|
||||
*)
|
||||
if [ "$TERM" != "dumb" ]; then
|
||||
eval "`dircolors -b`"
|
||||
fi
|
||||
alias ls='ls --color=auto'
|
||||
;;
|
||||
esac
|
||||
#case `uname` in
|
||||
#Linux)
|
||||
#if [ "$TERM" != "dumb" ]; then
|
||||
#eval "`dircolors -b`"
|
||||
#fi
|
||||
#alias ls='ls -F --color=auto'
|
||||
#alias open='xdg-open'
|
||||
#;;
|
||||
#Darwin)
|
||||
#alias ls='ls -FG'
|
||||
#;;
|
||||
#FreeBSD)
|
||||
#alias ls='ls -FG'
|
||||
#;;
|
||||
#SunOS)
|
||||
#alias ls='ls -F'
|
||||
#;;
|
||||
#*)
|
||||
#if [ "$TERM" != "dumb" ]; then
|
||||
#eval "`dircolors -b`"
|
||||
#fi
|
||||
#alias ls='ls --color=auto'
|
||||
#;;
|
||||
#esac
|
||||
|
||||
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ alias grep="grep --color=auto"
|
|||
alias dvtm="dvtm -m \"^w\""
|
||||
alias tm="tmux -2 attach"
|
||||
alias ppjson="python -mjson.tool"
|
||||
alias tmux-pwn='tmux list-clients | sed "s|^\(/dev/ttys[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$|\2 \1|" | sort -r -n | tail -n +2 | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t'
|
||||
#alias tmux-pwn='tmux list-clients | sed "s|^\(/dev/ttys[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$|\2 \1|" | sort -r -n | tail -n +2 | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t'
|
||||
|
||||
#Cosmetic/useful
|
||||
#alias naim="naim --noscreen"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue