Differences From Artifact [5e26245763]:
- File
config/fish/functions/prompt_pwd.fish
— part of check-in
[9fabec2218]
at
2020-02-12 21:54:30
on branch trunk
— prompt_pwd.fish: Keep the initial / for dirs in /
This makes it behave like in zsh. (user: js, size: 422) [annotate] [blame] [check-ins using]
To Artifact [be6aa8e75b]:
- File config/fish/functions/prompt_pwd.fish — part of check-in [bed5a23ae3] at 2020-02-19 21:46:19 on branch trunk — Consistent indenting for .fish files (user: js, size: 453) [annotate] [blame] [check-ins using]
- File fish/functions/prompt_pwd.fish — part of check-in [24d2eb82f0] at 2020-02-20 22:07:34 on branch trunk — Remove useless config subdirectory (user: js, size: 453) [annotate] [blame] [check-ins using]
1 | function prompt_pwd --description 'Print the current working directory' | | | | | | | | | | | < | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | function prompt_pwd --description 'Print the current working directory' set -l options 'h/help' argparse -n prompt_pwd --max-args=0 $options -- $argv or return if set -q _flag_help __fish_print_help prompt_pwd return 0 end # Replace $HOME with "~" set realhome ~ set -l tmp (basename (string replace -r '^'"$realhome"'($|/)' '~$1' $PWD)) test $PWD = "/$tmp" and set tmp $PWD echo $tmp end |