From ea7e25d25d8735c3b3c37bdd6a33a7b6478705f6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 4 Jul 2013 11:58:15 +0200 Subject: Updated fish shell with VC prompt and right pwd --- fish/config.fish | 18 +++++++++++++++--- fish/functions/edit.fish | 3 +++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 fish/functions/edit.fish diff --git a/fish/config.fish b/fish/config.fish index 36c9a3d01609..3c7b71aade21 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -1,14 +1,26 @@ function fish_prompt set_color blue echo -n (whoami) - set_color cyan - echo -n '@' set_color magenta - echo -n (prompt_pwd) + echo -n (vcprompt -f "(%s:%b%a%m)") set_color cyan echo -n '> ' end +function fish_right_prompt + set_color --bold yellow + echo -n '[' + set_color --bold blue + echo -n (prompt_pwd) + set_color --bold yellow + echo -n ']' +end + + +set -gx EDITOR emacsclient +set -gx ALTERNATE_EDITOR emacs +set -gx VISUAL emacsclient + set fish_greeting "" set PATH /usr/local/bin ~/Library/Haskell/bin ~/bin/ /Users/vincent/Source/management-scripts/google-apps/ $PATH diff --git a/fish/functions/edit.fish b/fish/functions/edit.fish new file mode 100644 index 000000000000..83f6eb854f7d --- /dev/null +++ b/fish/functions/edit.fish @@ -0,0 +1,3 @@ +function edit + emacsclient -no-wait $argv +end \ No newline at end of file -- cgit 1.4.1