Skip to content

Instantly share code, notes, and snippets.

@yutarot
Last active March 25, 2018 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yutarot/c364541f2eb2def8f4c729eb9bb444bd to your computer and use it in GitHub Desktop.
Save yutarot/c364541f2eb2def8f4c729eb9bb444bd to your computer and use it in GitHub Desktop.
source ~/.git-completion.bash
# commamnd aliases
alias ll='ls -l'
alias rm='rm -i'
alias vi='vim'
alias matrixx='LC_ALL=C tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]"'
alias matrix='echo -e "1"; while $t; do for i in `seq 1 30`;do r="$[($RANDOM % 2)]";h="$[($RANDOM % 4)]";if [ $h -eq 1 ]; then v="0 $r";else v="1 $r";fi;v2="$v2 $v";done;echo -e $v2;v2="";done;'
# for git
########## basic commands ###########
alias ad='git ad'
alias br='git br'
alias cm='git cm'
alias co='git co'
alias mg='git mg'
alias pl='git pl'
alias ps='git ps'
alias st='git st'
########## custom commands ##########
alias aa='git aa'
alias rh='git rh'
alias df='git df'
alias dl='git dl'
alias lg='git lg'
alias lgg='git lgg'
alias d1='git d1'
alias d2='git d2'
alias d3='git d3'
alias d4='git d4'
alias d5='git d5'
alias d6='git d6'
alias d7='git d7'
alias d8='git d8'
alias d9='git d9'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment