update instructions and aliases
parent
ffb6ff67bb
commit
6b5907e6ea
|
@ -1 +1 @@
|
||||||
alias dotfiles='git --git-dir=$HOME/dotfiles --work-tree=$HOME'
|
alias dotfiles='git --git-dir=$HOME/dotfiles.git/ --work-tree=$HOME'
|
||||||
|
|
2
.bashrc
2
.bashrc
|
@ -29,7 +29,7 @@ for k in $HOME/bin/*.bash ; do . $k ; done
|
||||||
function _update_ps1() {
|
function _update_ps1() {
|
||||||
PS1="$(powerline-shell $?)"
|
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"
|
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
||||||
else
|
else
|
||||||
PS1='[\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]]\$ '
|
PS1='[\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]]\$ '
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
git clone --bare git@github.com:penguincoder/dotfiles.git
|
git clone --bare git@github.com:penguincoder/dotfiles.git
|
||||||
function config {
|
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
|
mkdir -p .config-backup
|
||||||
config checkout
|
config checkout
|
||||||
|
|
Reference in New Issue