Skip to content

Instantly share code, notes, and snippets.

@lionello
Created June 3, 2019 14:03
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 lionello/29070e8756d3608bef42d2365107ed7d to your computer and use it in GitHub Desktop.
Save lionello/29070e8756d3608bef42d2365107ed7d to your computer and use it in GitHub Desktop.
if [ "$(uname -s)" != "Linux" ] && [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
source ~/.profile
PATH=/usr/local/sbin:$PATH
function __smile() { if [ $? -ne 0 ]; then echo ":("; else echo ":)"; fi }
GIT_PS1_SHOWDIRTYSTATE=true
PS1="\n\$(__smile)\[\e[1m\]\w\[\e[0m\]\$(__git_ps1)\n\$ "
export CLICOLOR=1
export LANG=en_US
export HISTFILESIZE=
export HISTSIZE=
export HISTCONTROL=ignoreboth
alias ..='cd ..'
alias cd~='cd ~'
alias cd..='cd ..'
alias gs='git status'
alias ...='cd ../..'
alias cd...='cd ../..'
alias cd-='cd -'
alias tac='tail -r'
--() { cd -; }
alias grep='grep --color'
alias mv='mv -i'
alias cp='cp -i'
#alias rm='rm -i'
alias l.='ls -d .*'
alias ll='ls -l'
export GOPATH=$HOME/.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment