mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
added setup script and completion script for tcsh
This commit is contained in:
2
completion/tmuxifier.tcsh
Normal file
2
completion/tmuxifier.tcsh
Normal 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
13
init.tcsh
Normal 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
|
||||
Reference in New Issue
Block a user