about summary refs log tree commit diff
path: root/fish/config.fish
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-07-04T09·58+0200
committerVincent Ambo <vincent@spotify.com>2013-07-04T09·58+0200
commitea7e25d25d8735c3b3c37bdd6a33a7b6478705f6 (patch)
treea855c32657d06d53fc6e0341dfd3dfe9abcd6211 /fish/config.fish
parent613c12af106e7614fc3aabab1c67ab8fc800602f (diff)
Updated fish shell with VC prompt and right pwd
Diffstat (limited to 'fish/config.fish')
-rw-r--r--fish/config.fish18
1 files changed, 15 insertions, 3 deletions
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