Skip to content

Commit f0647b0

Browse files
committed
Update init scripts
1 parent c9c3534 commit f0647b0

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

init.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Set tmuxifier root path.
1+
# Set/fix Tmuxifier root path if needed.
22
if [ -z "${TMUXIFIER}" ]; then
33
export TMUXIFIER="${HOME}/.tmuxifier"
44
else
@@ -11,7 +11,7 @@ if [[ ":$PATH:" != *":$TMUXIFIER/bin:"* ]]; then
1111
fi
1212

1313
# If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then
14-
# load tmuxifier shell completion.
14+
# load Tmuxifier shell completion.
1515
if [ -n "$(command -v "tmuxifier")" ] && [ -z "$TMUXIFIER_NO_COMPLETE" ]; then
1616
if [ -n "$BASH_VERSION" ]; then
1717
source "$TMUXIFIER/completion/tmuxifier.bash"

init.tcsh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
# Set tmuxifier root path.
1+
# Set Tmuxifier root path if needed.
22
if ( ! $?TMUXIFIER ) then
33
setenv TMUXIFIER "${HOME}/.tmuxifier"
44
endif
55

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
810

911
# If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then
10-
# load tmuxifier shell completion.
12+
# load Tmuxifier shell completion.
1113
if ( ! $?TMUXIFIER_NO_COMPLETE ) then
1214
which tmuxifier > /dev/null && source "$TMUXIFIER/completion/tmuxifier.tcsh"
1315
endif

0 commit comments

Comments
 (0)