Add layout and note plugins
This commit is contained in:
10
layout/layout.plugin.zsh
Normal file
10
layout/layout.plugin.zsh
Normal file
@@ -0,0 +1,10 @@
|
||||
layout() {
|
||||
if [[ "$1" == "" ]]; then
|
||||
echo "usage: layout <layout> [name]"
|
||||
else
|
||||
tmux source-file ~/.config/tmux/layouts/$1
|
||||
if [[ "$2" != "" ]]; then
|
||||
tmux rename-window $2
|
||||
fi
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user