Cass Caplinger

Posts Books Etc RSS
  • tmux cwd aliases

    aliases to open new panes/windows in the current dir

    can still pass through other options eg :swc -h

    .tmux.conf

    set -s command-alias[100] 'swc=split-window -c "#{pane_current_path}"'
    set -s command-alias[99] 'nwc=new-window -c "#{pane_current_path}"'
    

    https://github.com/tmux/tmux/wiki/Advanced-Use#command-aliases

    https://man.openbsd.org/tmux.1#pane_current_path

Github profile Email RSS