update instructions and aliases

pull/1/head
Andrew Coleman 2018-07-20 11:24:54 -04:00
parent ffb6ff67bb
commit 6b5907e6ea
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
alias dotfiles='git --git-dir=$HOME/dotfiles --work-tree=$HOME'
alias dotfiles='git --git-dir=$HOME/dotfiles.git/ --work-tree=$HOME'

View File

@ -29,7 +29,7 @@ for k in $HOME/bin/*.bash ; do . $k ; done
function _update_ps1() {
PS1="$(powerline-shell $?)"
}
if [[ $(which powerline-shell) && "$TERM" != "linux" && -z $TMUX ]]; then
if [[ $(which powerline-shell 2>/dev/null) && "$TERM" != "linux" && -z $TMUX ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
else
PS1='[\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]]\$ '

View File

@ -2,7 +2,7 @@
git clone --bare git@github.com:penguincoder/dotfiles.git
function config {
/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME $@
/usr/bin/git --git-dir=$HOME/dotfiles.git/ --work-tree=$HOME $@
}
mkdir -p .config-backup
config checkout