Skip to content

Instantly share code, notes, and snippets.

@1950195
Created August 3, 2013 08:41
Show Gist options
  • Save 1950195/6145744 to your computer and use it in GitHub Desktop.
Save 1950195/6145744 to your computer and use it in GitHub Desktop.
bash runtime configure...
$ vim ~/.bash_profile

Copied into your vim:

if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

PS1="["
PS1="$PS1\[\e[36m\]\u\[\e[0m\]"
PS1="$PS1@"
PS1="$PS1\[\e[34;1m\]\h\[\e[0m\]"
PS1="$PS1 \w]"
PS1="$PS1\\$ "

alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias ls='ls -GF'
alias ll='ls -l'
alias lla='ll -a'
alias img='sips -g pixelHeight -g pixelWidth $1'
$ cp ~/.bash_profile ~/.profile

关闭iterm2,重新打开

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment