Change layout path to ~/.local/share/tmux/layouts

This commit is contained in:
Kenneth Benzie 2018-08-26 18:39:02 +01:00
parent 31d06e0f19
commit ff8bb3e4ab
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#compdef layout
__get_layouts() {
ls -1 ~/.config/tmux/layouts 2>/dev/null | \
ls -1 ~/.local/share/tmux/layouts 2>/dev/null | \
while read -r layout; do echo $layout; done
}

View File

@ -2,7 +2,7 @@ layout() {
if [[ "$1" == "" ]]; then
echo "usage: layout <layout> [name]"
else
tmux source-file ~/.config/tmux/layouts/$1
tmux source-file ~/.local/share/tmux/layouts/$1
if [[ "$2" != "" ]]; then
tmux rename-window $2
fi