Skip to content

Instantly share code, notes, and snippets.



Last active Sep 14, 2015
What would you like to do?
My aliases
# cd
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
# common
alias cls='clear'
alias sctl='sudo systemctl'
# git
alias ga='git add'
alias gb='git branch'
alias gc='git commit'
alias gca='git commit -a'
alias gcb='git checkout -b'
alias gco='git checkout'
alias gcm='git commit -m'
alias gd='git diff'
alias gh='git stash'
alias gl='git log --graph --abbrev-commit --pretty=format:"%Cred%h%C(yellow)%d %Creset%s %Cgreen(%cr) %Cblue<%an>%Creset"'
alias gp='git push'
alias grem='git remote --verbose'
alias gs='git status -s -u'
alias gu='git pull'
alias gur='git pull --rebase'
# ls
alias ls='ls -h --color=auto --group-directories-first'
alias l='ls'
alias ll='ls -l'
alias la='ls -a'
# pacman
alias pcm='sudo pacman -S'
alias pcmu='sudo pacman -Syu'
alias pcmq='pacman -Qi'
alias pcms='pacman -Ss'
alias pcmi='pacman -Si'
alias pacfind='find /etc -regextype posix-extended -regex ".+\.pac(new|save|orig)" 2> /dev/null'
# python
alias delpy='find . -name "*.pyc" -delete'
# vim
alias v='vim'
alias gv='gvim'
alias vimrc='vim ~/.vim/vimrc'
# less
function le()
/usr/bin/highlight --line-numbers --validate-input --force --style=zenburn --out-format=xterm256 "$1" | less -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment