Skip to content

Instantly share code, notes, and snippets.

@sksitou
Created August 29, 2018 03:56
Show Gist options
  • Save sksitou/a05d93252377398aa70da0bff303a92a to your computer and use it in GitHub Desktop.
Save sksitou/a05d93252377398aa70da0bff303a92a to your computer and use it in GitHub Desktop.
bashrc setting and alias
# conda activation
export PATH=~/anaconda3/bin:$PATH
# alias
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias cd2='cd ../../'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias fk='fuck'
alias grep='grep --color=auto'
alias jpynb='jupyter notebook'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
alias py27='source activate py27'
alias py36='source activate py36'
alias pyde='source deactivate'
alias tree2='tree -dL 2'
alias tree3='tree -dL 3'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment