scmbreeze / scm_breeze

Adds numbered shortcuts to the output git status, and much more
https://madebynathan.com/2011/10/19/git-shortcuts-like-youve-never-seen-before/
MIT License
2.82k stars 192 forks source link

Shortcut for vscode in WSL breaking when I use scm-breeze #313

Closed AbdealiLoKo closed 2 years ago

AbdealiLoKo commented 2 years ago

I use windows + WSL - it looks like it worked before I use scm-breeze

# This works
$ code ~/
$ alias code
-bash: alias: code: not found

# When I use scm-breeze
$ [ -s "/home/abdealijk/.scm_breeze/scm_breeze.sh" ] && source "/home/abdealijk/.scm_breeze/scm_breeze.sh"

# Now it starts failing
$ code ~/oss/codemirror/
-bash: /mnt/c/Program: No such file or directory
$ alias code
alias code='exec_scmb_expand_args /mnt/c/Program Files/Microsoft VS Code/bin/code'

If I then run: alias code='exec_scmb_expand_args "/mnt/c/Program Files/Microsoft VS Code/bin/code"' it seems to work

ghthor commented 2 years ago

duplicate of #299

ghthor commented 2 years ago

Pull the latest master now that I've pulled #299 and this should fix this issue.