dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 431f09d0c609261fd02221127601f978cfe531f6
parent 3a5696d3ab9a109d30d63a36fe8f1ce7ca1e801e
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Sat, 14 Jul 2018 23:06:47 +0200

Use external script in order to show current dir

I like to have my home directory be displayed as '~', so I send tmux's
{pane_current_path} variable through a custom script that rewrites
$PWD=$HOME as ~.

Diffstat:
Mtmux.conf | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tmux.conf b/tmux.conf @@ -45,7 +45,7 @@ set -g visual-activity on # show host name and current directory on left side of status bar set -g status-left-length 100 -set -g status-left "#[fg=green]:::: #[fg=white]#(whoami)@#h #[fg=green]:: #[fg=white]#{~/scripts/print_current_dir.sh} #[fg=green]::" +set -g status-left "#[fg=green]:::: #[fg=white]#(whoami)@#h #[fg=green]:: #[fg=white]#(sh ~/scripts/tmux_pane_current_path.sh #{pane_current_path}) #[fg=green]::" # show current date and time on right side of status bar # --> sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//' <-- removes all leading and closing whitespaces of a string