diff --git a/scripts/cwd.sh b/scripts/cwd.sh index 4b1a460..ac89c6e 100755 --- a/scripts/cwd.sh +++ b/scripts/cwd.sh @@ -17,13 +17,13 @@ main() { # change '/home/user' to '~' cwd="${path/"$HOME"/'~'}" - + # check if the user wants only the current directory basename_enabled=$(tmux show-option -gqv @dracula-cwd-basename) if ["$basenmae_enabled" == "true" ]; then - #Extract only the last part of path - cwd=$(basename "cwd") + #Extract only the last part of path + cwd=$(basename "$cwd") fi echo "$cwd"