File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
- # Set tmuxifier root path.
1
+ # Set/fix Tmuxifier root path if needed .
2
2
if [ -z " ${TMUXIFIER} " ]; then
3
3
export TMUXIFIER=" ${HOME} /.tmuxifier"
4
4
else
@@ -11,7 +11,7 @@ if [[ ":$PATH:" != *":$TMUXIFIER/bin:"* ]]; then
11
11
fi
12
12
13
13
# If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then
14
- # load tmuxifier shell completion.
14
+ # load Tmuxifier shell completion.
15
15
if [ -n " $( command -v " tmuxifier" ) " ] && [ -z " $TMUXIFIER_NO_COMPLETE " ]; then
16
16
if [ -n " $BASH_VERSION " ]; then
17
17
source " $TMUXIFIER /completion/tmuxifier.bash"
Original file line number Diff line number Diff line change 1
- # Set tmuxifier root path.
1
+ # Set Tmuxifier root path if needed .
2
2
if ( ! $? TMUXIFIER ) then
3
3
setenv TMUXIFIER " ${HOME} /.tmuxifier"
4
4
endif
5
5
6
- # Add `bin` directroy to `$PATH`.
7
- set path = ( $TMUXIFIER /bin $path )
6
+ # Add `bin` directroy to `$path` if needed.
7
+ if ( " $path " =~ " * $TMUXIFIER /bin *" ) then
8
+ set path = ( $TMUXIFIER /bin $path )
9
+ endif
8
10
9
11
# If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then
10
- # load tmuxifier shell completion.
12
+ # load Tmuxifier shell completion.
11
13
if ( ! $? TMUXIFIER_NO_COMPLETE ) then
12
14
which tmuxifier > /dev/null && source " $TMUXIFIER /completion/tmuxifier.tcsh"
13
15
endif
You can’t perform that action at this time.
0 commit comments