diff options
author | Greg Dietsche <Gregory.Dietsche@cuw.edu> | 2013-04-04 23:34:32 -0500 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-04-12 14:03:26 -0700 |
commit | 1ae08cfedfa06158bcf1d72a1d30d30da0dc6654 (patch) | |
tree | 3c9ff832c2ca41020d1a08b9ca0e74e12620d1fa | |
parent | 3c116cd077f9f70bf4b9996da0f11d00f06b6293 (diff) |
tmux: implement ENVIRONMENT
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
-rw-r--r-- | share/completions/tmux.fish | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/share/completions/tmux.fish b/share/completions/tmux.fish index c44ef6c2..15d2681a 100644 --- a/share/completions/tmux.fish +++ b/share/completions/tmux.fish @@ -167,9 +167,19 @@ complete -c tmux -n "__fish_seen_subcommand_from $unbind" -xs t -d 'key table' - ############### End: Options ############### ############### Begin: Environment ############### -#TODO - these commands are not currently implemented. -#there is a section in the tmux man page that has the same title as this section -#use the "Clients and Sessions" code as an example when implementing this +set -l setenv 'set-environment setenv' +set -l showenv 'show-environment showenv' + +complete -c tmux -n '__fish_use_subcommand' -a $setenv -d 'Set or unset an environment variable' +complete -c tmux -n "__fish_seen_subcommand_from $setenv" -s g -d 'global environment' +complete -c tmux -n "__fish_seen_subcommand_from $setenv" -s r -d 'remove from environment before starting a new process' +complete -c tmux -n "__fish_seen_subcommand_from $setenv" -s u -d 'unset variable' +complete -c tmux -xs t -n "__fish_seen_subcommand_from $setenv" -a '(__fish_tmux_sessions)' -d 'target-session' + +complete -c tmux -n '__fish_use_subcommand' -a $showenv -d 'bind key to command' +complete -c tmux -n "__fish_seen_subcommand_from $showenv" -s g -d 'global environment' +complete -c tmux -xs t -n "__fish_seen_subcommand_from $showenv" -a '(__fish_tmux_sessions)' -d 'target-session' + ############### End: Environment ############### ############### Begin: Status Line ############### |