From d34e508730b315758fd03e6b6d2f20986ba2d922 Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Tue, 5 May 2020 23:44:10 -0500 Subject: [PATCH] fish: revert to default prompt --- fish/functions/fish_prompt.fish | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 fish/functions/fish_prompt.fish diff --git a/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish deleted file mode 100644 index 3da18d3..0000000 --- a/fish/functions/fish_prompt.fish +++ /dev/null @@ -1,29 +0,0 @@ -function fish_prompt --description 'Write out the prompt' - # Save status code for previous command - set -l last_status $status - - # If we're running via SSH, display the hostname - if set -q SSH_TTY - set_color $fish_color_host_remote - echo -n "$hostname " - set_color normal - end - - # Print working directory - set_color $fish_color_cwd - echo -n (prompt_pwd) - set_color normal - - # Print git information - printf '%s ' (__fish_git_prompt) - - # Print status code for previous command, if nonzero - if not test $last_status -eq 0 - set_color $fish_color_error - echo -n "[$last_status] " - set_color normal - end - - # Print the final character - echo -n "> " -end