File tree 8 files changed +12
-12
lines changed
8 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 272
272
273
273
# Initialize.
274
274
if [[ ! -d $DOTFILES ]]; then
275
- # ~/.dotfiles doesn't exist? Clone it!
275
+ # $DOTFILES directory doesn't exist? Clone it!
276
276
new_dotfiles_install=1
277
277
prompt_delay=15
278
278
e_header " Downloading dotfiles"
Original file line number Diff line number Diff line change 1
1
# 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"
14
14
alias q.=' q .'
15
15
16
16
function 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
19
19
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function md() {
41
41
}
42
42
43
43
# Fast directory switching
44
- mkdir -p ~ /.dotfiles /caches/z
44
+ mkdir -p $DOTFILES /caches/z
45
45
_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() {
48
48
# Export Localization.prefPane text substitution rules.
49
49
function txt_sub_backup() {
50
50
local prefs=~ /Library/Preferences/.GlobalPreferences.plist
51
- local backup=~ /.dotfiles /conf/osx/NSUserReplacementItems.plist
51
+ local backup=$DOTFILES /conf/osx/NSUserReplacementItems.plist
52
52
/usr/libexec/PlistBuddy -x -c " Print NSUserReplacementItems" " $prefs " > " $backup " &&
53
53
echo " File ~${backup# $HOME } written."
54
54
}
55
55
56
56
# Import Localization.prefPane text substitution rules.
57
57
function txt_sub_restore() {
58
58
local prefs=~ /Library/Preferences/.GlobalPreferences.plist
59
- local backup=~ /.dotfiles /conf/osx/NSUserReplacementItems.plist
59
+ local backup=$DOTFILES /conf/osx/NSUserReplacementItems.plist
60
60
if [[ ! -e " $backup " ]]; then
61
61
echo " Error: file ~${backup# $HOME } does not exist!"
62
62
return 1
Original file line number Diff line number Diff line change 1
1
export PATH
2
2
3
3
# 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"
5
5
6
6
if [[ " $( type -P rbenv) " && ! " $( type -t _rbenv) " ]]; then
7
7
eval " $( rbenv init -) "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- source ~ /.dotfiles /source/00_dotfiles.sh
2
+ source $DOTFILES /source/00_dotfiles.sh
3
3
4
4
e_header " $( basename " $0 " .sh) "
5
5
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
- source ~ /.dotfiles /source/00_dotfiles.sh
2
+ source $DOTFILES /source/00_dotfiles.sh
3
3
4
4
e_header " $( basename " $0 " .sh) "
5
5
You can’t perform that action at this time.
0 commit comments