mirror of https://github.com/bjeanes/dotfiles.git
Hard-code .dotfiles path
Before I switched to Fresh, I assembled my dotfiles with my own script that ensured this was set, but it is no longer set. I don't need the dot files directory to be customisable, so I'll just hard-code the path
parent
0367b771db
commit
b3b9ee4dcc
|
@ -2,4 +2,4 @@ CURRENT_SHELL="bash"
|
|||
SHELL_FILES="$(dirname $(readlink $BASH_SOURCE))"
|
||||
DOT_FILES="$(dirname $(dirname $SHELL_FILES))"
|
||||
|
||||
source $DOT_FILES/shells/bootstrap.sh
|
||||
source $HOME/.dotfiles/shells/bootstrap.sh
|
||||
|
|
|
@ -15,6 +15,6 @@ shopt -s checkwinsize histappend cdable_vars extglob nullglob cdspell cmdhist ho
|
|||
# Bash 4 and above only
|
||||
shopt -s globstar autocd checkjobs 2>/dev/null
|
||||
|
||||
complete -C $DOT_FILES/bash/rake-completion.rb -o default rake}
|
||||
complete -C $HOME/.dotfiles/bash/rake-completion.rb -o default rake}
|
||||
|
||||
alias reload="source ~/.bashrc"
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
# Git completion support in bash
|
||||
source $DOT_FILES/vcs/git/git-completion
|
||||
|
||||
source $HOME/.dotfiles/vcs/git/git-completion
|
||||
|
|
|
@ -80,7 +80,7 @@ function extract() {
|
|||
|
||||
# Zsh
|
||||
function __disabled__command_not_found_handler() {
|
||||
/usr/bin/env ruby $DOT_FILES/misc/method_missing.rb $*
|
||||
/usr/bin/env ruby $HOME/.dotfiles/misc/method_missing.rb $*
|
||||
}
|
||||
|
||||
# Bash (call Zsh version)
|
||||
|
|
|
@ -17,7 +17,7 @@ function __append_path {
|
|||
[ -d "$HOME/bin" ] && __prepend_path "PATH" "$HOME/bin"
|
||||
[ -d "$HOME/.cargo/bin" ] && __prepend_path "PATH" "$HOME/.cargo/bin"
|
||||
[ -d "$HOME/.emacs.d/bin" ] && __prepend_path "PATH" "$HOME/.emacs.d/bin"
|
||||
[ -d "$DOT_FILES/bin" ] && __prepend_path "PATH" "$DOT_FILES/bin"
|
||||
[ -d "$HOME/.dotfiles/bin" ] && __prepend_path "PATH" "$HOME/.dotfiles/bin"
|
||||
[ -d '/usr/local/bin' ] && __append_path "PATH" "/usr/local/bin"
|
||||
[ -d '/usr/local/sbin' ] && __append_path "PATH" "/usr/local/sbin"
|
||||
[ -d '/opt/local/bin' ] && __append_path "PATH" "/opt/local/bin"
|
||||
|
|
Loading…
Reference in New Issue