Deduce $BASH_IT relative to install script location at execution
Instead of assuming it is located at ~/.bash_it which might very well not be the casepull/174/head
parent
6f0a147c01
commit
b547b107bc
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
# bash-it installer
|
||||
BASH_IT="${HOME}/.bash_it"
|
||||
|
||||
BASH_IT=$(cd ${0%/*} && echo ${PWD})
|
||||
cd "${OLDPWD}"
|
||||
cp "${HOME}/.bash_profile" "${HOME}/.bash_profile.bak"
|
||||
cp "${HOME}/.bash_it/template/bash_profile.template.bash" "${HOME}/.bash_profile"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue