Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
AstringentBeet committed Jan 25, 2025
1 parent e6dd6f7 commit ca29c9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/cwd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ main() {
# check if the user wants only the current directory
basename_enabled=$(tmux show-option -gqv @dracula-cwd-basename)

if ["$basenmae_enabled" == "true" ]; then
if [ "$basename_enabled" == "true" ]; then
#Extract only the last part of path
cwd=$(basename "$cwd")
fi

echo "$cwd"
}

# Enable debugging
set -x

#run main driver program
main

0 comments on commit ca29c9f

Please sign in to comment.