Remove useless config subdirectory
This commit is contained in:
parent
ed4a20897f
commit
26811f58ef
29 changed files with 3 additions and 3 deletions
|
@ -1,19 +0,0 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue