Last active
June 2, 2020 05:32
-
-
Save no1fushi/571c2b86863fe288ab26fc85d39e9c94 to your computer and use it in GitHub Desktop.
For the blog ( https://no1fushi.hateblo.jp/entry/2019/12/21/130328 )
This file contains 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
# short | |
alias c='clear' | |
alias ll='ls -l' | |
alias la="ls -a" | |
# editor | |
alias vi='vim' | |
alias nano='nano -k -w -i -S' | |
alias emacs='emacs -nw' | |
vim_version=`vim --version | head -1 | sed 's/^.*\ \([0-9]\)\.\([0-9]\)\ .*$/\1\2/'` | |
alias vless='/usr/share/vim/vim${vim_version}/macros/less.sh' | |
# git | |
alias gs='git status' | |
alias ga='git add' | |
alias gaa='git add --all' | |
alias gc='git commit -m' | |
alias gcl='git clone' | |
alias gco='git checkout' | |
alias gb='git branch' | |
alias gbd='git branch -d' | |
alias gps='git push' | |
alias gpl='git pull' | |
alias gl='git log' | |
alias gr='git reset' | |
alias grh='git reset --hard' | |
alias gra='git remote add origin' | |
# file | |
alias bashrc='source ~/.bashrc' | |
alias bashpf='source ~/.bash_profile' | |
# useful | |
alias bk='cd $OLDPWD' | |
alias eth0='ifconfig eth0' | |
alias untar='tar -zxvf' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment