mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-01-20 11:43:16 +08:00
using prompt_pwd instead of $PWD to show home as ~.
This commit is contained in:
parent
faf304d5f4
commit
38fcb0cf44
|
@ -6,7 +6,7 @@ function fish_prompt
|
|||
set -l normal (set_color normal)
|
||||
|
||||
set -l arrow "$red➜ "
|
||||
set -l cwd $cyan(basename $PWD)
|
||||
set -l cwd $cyan(basename (prompt_pwd))
|
||||
|
||||
if [ (git_branch_name) ]
|
||||
set -l git_branch $red(git_branch_name)
|
||||
|
|
Loading…
Reference in New Issue
Block a user