added setup script and completion script for tcsh

This commit is contained in:
peter-d
2012-09-05 14:13:09 +02:00
parent 307c959b65
commit 3f171997df
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
complete tmuxifier 'p@1@`$HOME/.tmuxifier/bin/tmuxifier commands`@' \
'p@2@`$HOME/.tmuxifier/bin/tmuxifier completions $:-1`@'

13
init.tcsh Normal file
View File

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