Change layout path to ~/.local/share/tmux/layouts
This commit is contained in:
parent
31d06e0f19
commit
ff8bb3e4ab
@ -1,7 +1,7 @@
|
|||||||
#compdef layout
|
#compdef layout
|
||||||
|
|
||||||
__get_layouts() {
|
__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
|
while read -r layout; do echo $layout; done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ layout() {
|
|||||||
if [[ "$1" == "" ]]; then
|
if [[ "$1" == "" ]]; then
|
||||||
echo "usage: layout <layout> [name]"
|
echo "usage: layout <layout> [name]"
|
||||||
else
|
else
|
||||||
tmux source-file ~/.config/tmux/layouts/$1
|
tmux source-file ~/.local/share/tmux/layouts/$1
|
||||||
if [[ "$2" != "" ]]; then
|
if [[ "$2" != "" ]]; then
|
||||||
tmux rename-window $2
|
tmux rename-window $2
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user