commit 75ddb8e6378312d29c2cae1a22897a60c29058e2
parent 3f762827cc4b62e69dd870614832d89b13a6b845
Author: mehdi-norouzi <mehdeenoroozi@gmail.com>
Date: Sun, 18 Jun 2023 20:39:01 +0330
nvim, shell: cht.sh shortcut
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/nvim/.config/nvim/lua/mehdi/mappings.lua b/nvim/.config/nvim/lua/mehdi/mappings.lua
@@ -100,4 +100,5 @@ map("n", "<leader>mf22", "<cmd>wa<cr><cmd>! mf22<cr>", opts)
map("n", "<leader>cp", ":wa<cr><cmd>! compiler %<cr><cr>", opts)
-- tmux sessionizer
-map("n", "<C-f>", ":!tmux neww sessionizer<cr>", opts)
+map("n", "<C-f>", ":sil !tmux neww sessionizer<cr>", opts)
+map("n", "<C-s>", ":sil !tmux split-window -h -l 85 bash -c cht.sh<cr>", opts)
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
@@ -82,3 +82,4 @@ source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
bindkey -s '^f' 'sessionizer\n'
+bindkey -s '^s' 'tmux split-window -h -l 85 bash -c cht.sh\n'