dotfiles/.bash_aliases

25 lines
646 B
Bash
Raw Normal View History

2016-10-10 16:23:16 +02:00
alias ag='ag --pager less'
alias cdiff='colordiff -u'
alias dotgit='git --work-tree $HOME --git-dir $HOME/.dot_git'
alias hs='history -a; history -n'
2016-10-17 14:05:18 +02:00
alias l='less -nS'
2016-10-10 16:23:16 +02:00
alias lower="tr '[:upper:]' '[:lower:]'"
alias pstree="pstree -Auh | less"
alias tail='tail -n $LINES'
alias timestamp='TZ=Z date "+%Y%m%dT%H%M%SZ"'
alias tree='tree -C'
alias upper="tr '[:lower:]' '[:upper:]'"
alias vimdiff='vimdiff -R'
2017-02-09 14:19:54 +01:00
alias vim=nvim
2017-05-18 16:27:52 +02:00
alias v='nvim $(fzf-tmux)'
2016-10-10 16:23:16 +02:00
ls --group-directories-first >/dev/null 2>&1
if [ $? -gt 0 ] ; then
alias ls='ls --color=auto'
else
alias ls='ls --color=auto --group-directories-first'
fi
alias lsc='ls -C'
# vim: ft=sh