Update init scripts

This commit is contained in:
2013-06-12 00:09:19 +01:00
parent c9c3534f05
commit f0647b0326
2 changed files with 8 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
# Set tmuxifier root path. # Set/fix Tmuxifier root path if needed.
if [ -z "${TMUXIFIER}" ]; then if [ -z "${TMUXIFIER}" ]; then
export TMUXIFIER="${HOME}/.tmuxifier" export TMUXIFIER="${HOME}/.tmuxifier"
else else
@@ -11,7 +11,7 @@ if [[ ":$PATH:" != *":$TMUXIFIER/bin:"* ]]; then
fi fi
# If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then # If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then
# load tmuxifier shell completion. # load Tmuxifier shell completion.
if [ -n "$(command -v "tmuxifier")" ] && [ -z "$TMUXIFIER_NO_COMPLETE" ]; then if [ -n "$(command -v "tmuxifier")" ] && [ -z "$TMUXIFIER_NO_COMPLETE" ]; then
if [ -n "$BASH_VERSION" ]; then if [ -n "$BASH_VERSION" ]; then
source "$TMUXIFIER/completion/tmuxifier.bash" source "$TMUXIFIER/completion/tmuxifier.bash"

View File

@@ -1,13 +1,15 @@
# Set tmuxifier root path. # Set Tmuxifier root path if needed.
if ( ! $?TMUXIFIER ) then if ( ! $?TMUXIFIER ) then
setenv TMUXIFIER "${HOME}/.tmuxifier" setenv TMUXIFIER "${HOME}/.tmuxifier"
endif endif
# Add `bin` directroy to `$PATH`. # Add `bin` directroy to `$path` if needed.
set path = ( $TMUXIFIER/bin $path ) if ( " $path " =~ "* $TMUXIFIER/bin *" ) then
set path = ( $TMUXIFIER/bin $path )
endif
# If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then # If `tmuxifier` is available, and `$TMUXIFIER_NO_COMPLETE` is not set, then
# load tmuxifier shell completion. # load Tmuxifier shell completion.
if ( ! $?TMUXIFIER_NO_COMPLETE ) then if ( ! $?TMUXIFIER_NO_COMPLETE ) then
which tmuxifier > /dev/null && source "$TMUXIFIER/completion/tmuxifier.tcsh" which tmuxifier > /dev/null && source "$TMUXIFIER/completion/tmuxifier.tcsh"
endif endif