Skip to content

Instantly share code, notes, and snippets.

@dedalqq
Created October 30, 2014 06:36
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 dedalqq/31aa35aa9fe0cd8abfe7 to your computer and use it in GitHub Desktop.
Save dedalqq/31aa35aa9fe0cd8abfe7 to your computer and use it in GitHub Desktop.
From chrome://newtab/
# Включаем автоподстановку
if [ -f ~/.scripts/git-completion.bash ]; then
. ~/.scripts/git-completion.bash
fi
# Включаем отображение состояния в строке приветствия bash
if [ -f ~/.scripts/git-prompt.sh ]; then
. ~/.scripts/git-prompt.sh
fi
GIT_PS1_SHOWDIRTYSTATE=true
# Устанавливаем строку приветствия с цветами со статусом git репозитория
PS1='\[\033[01;32m\]${USER}@$\h\[\033[00m\]:\[\033[01;34m\]${PWD/#$HOME/~}\[\033[35m\]$(__git_ps1 " (%s)") \[\033[01;00m\]$ '
# MacPorts Installer addition on 2014-06-14_at_12:44:18: adding an appropriate PATH variable for use with MacPorts.
export PATH=.bin:/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment