diff options
author | axel <axel@liljencrantz.se> | 2007-08-02 04:09:01 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2007-08-02 04:09:01 +1000 |
commit | 782a739736467b61aa5ffbbb5c12beb2c8670812 (patch) | |
tree | b17467370fd298033b7dfdf25f0b60274968de4a /share | |
parent | cd19320ab2feafbe0498b21d0a4aba27f6c2cd7d (diff) |
Remove confusing and misleading error message when trying to repaint the prompt during startup, reported by Chris Rebert.
darcs-hash:20070801180901-ac50b-43abf47182fcaa19fdbd993d480ac07f2915b6ed.gz
Diffstat (limited to 'share')
-rw-r--r-- | share/config_interactive.fish.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/share/config_interactive.fish.in b/share/config_interactive.fish.in index dd3084e9..8e18df14 100644 --- a/share/config_interactive.fish.in +++ b/share/config_interactive.fish.in @@ -165,8 +165,10 @@ functions -e set_default # function __fish_repaint --on-variable fish_color_cwd --description "Event handler, repaints the prompt when fish_color_cwd changes" - set -e __fish_prompt_cwd - commandline -f repaint + if status --is-interactive + set -e __fish_prompt_cwd + commandline -f repaint ^/dev/null + end end # |