Add cwd.sh to display the tmux pane's current working directory, updated README to reflect change

This commit is contained in:
jonathanforhan 2023-04-07 20:40:53 -04:00
parent b346d10306
commit 09c5750656
3 changed files with 37 additions and 0 deletions

View file

@ -128,6 +128,12 @@ main()
for plugin in "${plugins[@]}"; do
if [ $plugin = "cwd" ]; then
IFS=' ' read -r -a colors <<< $(get_tmux_option "@dracula-cwd-colors" "dark_gray white")
tmux set-option -g status-right-length 250
script="#($current_dir/cwd.sh)"
fi
if [ $plugin = "git" ]; then
IFS=' ' read -r -a colors <<< $(get_tmux_option "@dracula-git-colors" "green dark_gray")
tmux set-option -g status-right-length 250