dotfiles

My dotfiles for Arch Linux
Log | Files | Refs | README

tmux_pane_current_path.sh (159B)


      1 #!/bin/sh
      2 
      3 # Customize tmux's {pane_current_path} variable
      4 
      5 if [ $1 = $HOME ]; then
      6 	echo "~/"
      7 elif [ $1 = "/" ]; then
      8 	echo "/"
      9 else
     10 	echo $(basename $1)/
     11 fi