Enable load commands to accept file paths in addition to layout names

Resolves issue #20. Additionally, load_session now has an optional
second argument to set the default session name. And error output from
both load commands is now printed to STDERR and give a return code of 1
on error.
This commit is contained in:
2013-07-02 23:04:35 +02:00
parent da1354d5b7
commit 1dddbb502c
3 changed files with 29 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ source "$TMUXIFIER/lib/util.sh"
# Provide tmuxifier help
if calling-help "$@"; then
echo "usage: tmuxifier load-window <layout_name>
echo "usage: tmuxifier load-window <layout_name | file_path>
Aliases: window, win, w