Skip to content

Commit

Permalink
feat(tmux): add 'switch workspace' shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Dec 31, 2024
1 parent 1e7a2f3 commit 1779ae2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions home/modules/shell/tmux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ in
# Actually copy to clipboard (on Linux)
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# Switch to (another) workspace
bind g gotoworkspace
# Attach current directory to session
bind a attach -c "#{pane_current_path}"
# bind a run-shell "SESSION_NAME=\$(basename '#{pane_current_path}'); tmux rename-session \"\$SESSION_NAME\" ; tmux attach -c '#{pane_current_path}' >/dev/null"
Expand Down

0 comments on commit 1779ae2

Please sign in to comment.