Skip to content

Commit f8d64af

Browse files
committed
fixed up the lint issues
1 parent d62ac5d commit f8d64af

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bash/bashrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ if [ -n "$force_color_prompt" ]; then
183183
fi
184184

185185
MAUVE="\[\033[38;2;203;166;247m\]"
186-
GREEN="\[\033[38;2;166;227;161m\]"
187186
BLUE="\[\033[38;2;137;180;250m\]"
188187
RESET="\[\033[00m\]"
189188

bash/functions/git_functions.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ function __git_ps1_windows_mount() {
4040
format_str=" (%s)"
4141
fi
4242

43-
local path=$(pwd)
43+
local path
44+
path=$(pwd)
4445
if iswsl && [[ "$path" =~ /mnt/[a-z]/ ]] && git rev-parse --is-inside-work-tree > /dev/null 2>&1; then
4546
# We're in a Windows mount path
4647
# Use git.exe directly to get branch info
47-
local branch=$(git.exe branch --show-current 2> /dev/null)
48+
local branch
49+
branch=$(git.exe branch --show-current 2> /dev/null)
4850
if [ -n "$branch" ]; then
4951
# Replace %s with the actual branch name
5052
echo "${format_str//%s/$branch}"

0 commit comments

Comments
 (0)