Last active
September 14, 2015 01:21
-
-
Save Ivoz/28a6fcfe55d5d961ce48 to your computer and use it in GitHub Desktop.
My aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
# 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