mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
Add support for command aliases
* `session` and `window` commands are now know as `load-session` and `load-window` respectively, with aliases for their former names. * Add short aliases for various commands. * `help` and `completions` commands have been expanded with support for aliases. * `help` command has been expanded upon with brief docs for a few more commands.
This commit is contained in:
33
libexec/tmuxifier-alias
Executable file
33
libexec/tmuxifier-alias
Executable file
@@ -0,0 +1,33 @@
|
||||
#! /usr/bin/env bash
|
||||
set -e
|
||||
[ -n "$TMUXIFIER_DEBUG" ] && set -x
|
||||
|
||||
case "$1" in
|
||||
"window" | "win" | "w" )
|
||||
echo "load-window"
|
||||
;;
|
||||
"session" | "ses" | "s" )
|
||||
echo "load-session"
|
||||
;;
|
||||
"new-ses" | "ns" )
|
||||
echo "new-session"
|
||||
;;
|
||||
"new-win" | "nw" )
|
||||
echo "new-window"
|
||||
;;
|
||||
"edit-ses" | "es" )
|
||||
echo "edit-session"
|
||||
;;
|
||||
"edit-win" | "ew" )
|
||||
echo "edit-window"
|
||||
;;
|
||||
"ls" )
|
||||
echo "list"
|
||||
;;
|
||||
"list-ses" | "lss" )
|
||||
echo "list-sessions"
|
||||
;;
|
||||
"list-win" | "lsw" )
|
||||
echo "list-windows"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user