mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 18:22:45 +08:00
fish_config: Skip backing up prompt
This would print an ugly but benign error
This commit is contained in:
parent
9e1c8a70bf
commit
afd242b14d
|
@ -106,7 +106,10 @@ function fish_config --description "Launch fish's web based configuration"
|
|||
read -P"Overwrite prompt? [y/N]" -l yesno
|
||||
if string match -riq 'y(es)?' -- $yesno
|
||||
echo Overwriting
|
||||
cp $__fish_config_dir/functions/fish_prompt.fish{,.bak}
|
||||
# Skip the cp if unnecessary,
|
||||
# or we'd throw an error on a stock fish.
|
||||
path is $__fish_config_dir/functions/fish_prompt.fish
|
||||
and cp $__fish_config_dir/functions/fish_prompt.fish{,.bak}
|
||||
|
||||
set -l have
|
||||
if set -q argv[1]
|
||||
|
|
Loading…
Reference in New Issue
Block a user