This commit is contained in:
DeveloperDurp 2025-04-10 06:17:17 -05:00
parent e4fc8f57e8
commit ccba1d63d6
2 changed files with 11 additions and 9 deletions

View file

@ -198,9 +198,11 @@ map <leader>ns <action>(NewScratchFile)
" Git windows " Git windows
let g:WhichKeyDesc_git = "<leader>G Git/Go Operations" let g:WhichKeyDesc_git = "<leader>G Git/Go Operations"
let g:WhichKeyDesc_git_lazygit = "<leader>Gg Lazygit"
let g:WhichKeyDesc_git_commit = "<leader>Gc Open Git commit dialog" let g:WhichKeyDesc_git_commit = "<leader>Gc Open Git commit dialog"
let g:WhichKeyDesc_git_branches = "<leader>Gb Open Git branches list" let g:WhichKeyDesc_git_branches = "<leader>Gb Open Git branches list"
let g:WhichKeyDesc_git_pull = "<leader>Gp Open Git Pull" let g:WhichKeyDesc_git_pull = "<leader>Gp Open Git Pull"
map <leader>Gg <Action>(TUILauncher.lazygit)
map <leader>Gc <Action>(CheckinProject) map <leader>Gc <Action>(CheckinProject)
map <leader>Gb <Action>(Git.Branches) map <leader>Gb <Action>(Git.Branches)
map <leader>Gp <Action>(Git.Pull) map <leader>Gp <Action>(Git.Pull)

18
.zshrc
View file

@ -18,16 +18,16 @@ done
unset conf unset conf
if command -v tmux &> /dev/null && [[ "$TERMINAL_EMULATOR" == "JetBrains-JediTerm" ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then if command -v tmux &> /dev/null && [[ "$TERMINAL_EMULATOR" == "JetBrains-JediTerm" ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
cwd=$(pwd) #cwd=$(pwd)
session_name="zJediTerm-$(basename "$cwd" | tr -d '.')" #session_name="zJediTerm-$(basename "$cwd" | tr -d '.')"
if tmux has-session -t $session_name; then #if tmux has-session -t $session_name; then
tmux attach -t $session_name # tmux attach -t $session_name
else #else
tmux new-session -s $session_name -c $cwd -d # tmux new-session -s $session_name -c $cwd -d
tmux send-keys -t $session_name "tmux set-option status off;clear" Enter # tmux send-keys -t $session_name "tmux set-option status off;clear" Enter
tmux attach -t $session_name # tmux attach -t $session_name
fi #fi
fi fi
if command -v tmux &> /dev/null && [[ ! "$TERMINAL_EMULATOR" == "JetBrains-JediTerm" ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then if command -v tmux &> /dev/null && [[ ! "$TERMINAL_EMULATOR" == "JetBrains-JediTerm" ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then