fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerUse globals for color variables, react to light/dark mode190d367bc

master
215 B5 linesraw
1# localization: skip(private)
2function __fish_unexpand_tilde --description 'Replace $HOME with "~"'
3    set -l realhome (string escape --style=regex -- ~)
4    string replace -r -- "^$realhome(\$|/)" '~$1' $argv
5end