2016-07-12 16:39:02 +02:00
|
|
|
alias ll="ls -l"
|
|
|
|
alias c="clear"
|
|
|
|
alias dir='find . -maxdepth 1 -type d -regex "\.\/[^.].+"'
|
|
|
|
|
|
|
|
|
2017-06-25 21:42:58 +02:00
|
|
|
# aliases with dependencies
|
|
|
|
command -v nvim && alias vim="nvim" || echo "Missing dependency (nvim). Failed to alias vim -> nvim"
|
|
|
|
command -v 'find -E' && alias find="find -E" || echo "Missing dependency (find -E). Failed to alias find -> find -E"
|
|
|
|
command -v egrep && alias grep="egrep" || echo "Missing dependency (egrep). Failed to alias grep -> egrep"
|
|
|
|
command -v 'pygmentize -g' && alias ccat='pygmentize -g' || echo "Missing dependency (pygmentize -g). Failed to alias ccat -> pygmentize -g"
|
|
|
|
command -v hub && alias git=hub || echo "Missing dependency (hub). Failed to alias git -> hub"
|
2017-01-24 23:57:25 +01:00
|
|
|
|
2017-02-13 17:21:23 +01:00
|
|
|
|
2017-06-25 21:42:58 +02:00
|
|
|
# git-specific aliases
|
2017-05-26 17:24:18 +02:00
|
|
|
git config --global alias.recent 'for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"'
|
|
|
|
git config --global alias.today 'log --since=00:00:00 --all --no-merges --oneline --author="$(git config --get user.email)"'
|
2017-05-26 17:29:03 +02:00
|
|
|
|
2017-06-25 21:42:58 +02:00
|
|
|
alias glp="git log --graph --pretty=format:'%Cred%h%Creset -%Cblue %an %Creset - %C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
|
|
|
|
alias gprom="git pull --rebase origin master"
|
2017-05-26 17:29:03 +02:00
|
|
|
alias gcan='git commit --amend --no-edit'
|
|
|
|
alias gpf='git push --force'
|
2017-06-15 22:44:30 +02:00
|
|
|
alias gds='git diff --staged'
|