File tree Expand file tree Collapse file tree 8 files changed +12
-12
lines changed Expand file tree Collapse file tree 8 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 272272
273273# Initialize.
274274if [[ ! -d $DOTFILES ]]; then
275- # ~/.dotfiles doesn't exist? Clone it!
275+ # $DOTFILES directory doesn't exist? Clone it!
276276 new_dotfiles_install=1
277277 prompt_delay=15
278278 e_header " Downloading dotfiles"
Original file line number Diff line number Diff line change 11# Passing the "source" arg tells it to only define functions, then quit.
2- source ~ /.dotfiles /bin/dotfiles " source"
2+ source $DOTFILES /bin/dotfiles " source"
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ export VISUAL="$EDITOR"
1414alias q.=' q .'
1515
1616function qs() {
17- pwd | perl -ne" s#^$( echo ~ /.dotfiles ) ## && exit 1" && cd ~ /.dotfiles
18- q ~ /.dotfiles
17+ pwd | perl -ne" s#^$( echo $DOTFILES ) ## && exit 1" && cd $DOTFILES
18+ q $DOTFILES
1919}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function md() {
4141}
4242
4343# Fast directory switching
44- mkdir -p ~ /.dotfiles /caches/z
44+ mkdir -p $DOTFILES /caches/z
4545_Z_NO_PROMPT_COMMAND=1
46- _Z_DATA=~ /.dotfiles /caches/z/z
47- . ~ /.dotfiles /vendor/z/z.sh
46+ _Z_DATA=$DOTFILES /caches/z/z
47+ . $DOTFILES /vendor/z/z.sh
Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ function vm_template() {
4848# Export Localization.prefPane text substitution rules.
4949function txt_sub_backup() {
5050 local prefs=~ /Library/Preferences/.GlobalPreferences.plist
51- local backup=~ /.dotfiles /conf/osx/NSUserReplacementItems.plist
51+ local backup=$DOTFILES /conf/osx/NSUserReplacementItems.plist
5252 /usr/libexec/PlistBuddy -x -c " Print NSUserReplacementItems" " $prefs " > " $backup " &&
5353 echo " File ~${backup# $HOME } written."
5454}
5555
5656# Import Localization.prefPane text substitution rules.
5757function txt_sub_restore() {
5858 local prefs=~ /Library/Preferences/.GlobalPreferences.plist
59- local backup=~ /.dotfiles /conf/osx/NSUserReplacementItems.plist
59+ local backup=$DOTFILES /conf/osx/NSUserReplacementItems.plist
6060 if [[ ! -e " $backup " ]]; then
6161 echo " Error: file ~${backup# $HOME } does not exist!"
6262 return 1
Original file line number Diff line number Diff line change 11export PATH
22
33# rbenv init.
4- PATH=" $( path_remove ~ /.dotfiles/ vendor/rbenv/bin) :~/.dotfiles /vendor/rbenv/bin"
4+ PATH=" $( path_remove $DOTFILES / vendor/rbenv/bin) :$DOTFILES /vendor/rbenv/bin"
55
66if [[ " $( type -P rbenv) " && ! " $( type -t _rbenv) " ]]; then
77 eval " $( rbenv init -) "
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- source ~ /.dotfiles /source/00_dotfiles.sh
2+ source $DOTFILES /source/00_dotfiles.sh
33
44e_header " $( basename " $0 " .sh) "
55
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- source ~ /.dotfiles /source/00_dotfiles.sh
2+ source $DOTFILES /source/00_dotfiles.sh
33
44e_header " $( basename " $0 " .sh) "
55
You can’t perform that action at this time.
0 commit comments