Skip to content

Commit

Permalink
typo correction
Browse files Browse the repository at this point in the history
  • Loading branch information
AstringentBeet committed Jan 24, 2025
1 parent 40a9912 commit e6dd6f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/cwd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e6dd6f7

Please sign in to comment.