Updated fish shell with VC prompt and right pwd
This commit is contained in:
parent
613c12af10
commit
ea7e25d25d
2 changed files with 18 additions and 3 deletions
|
|
@ -1,14 +1,26 @@
|
||||||
function fish_prompt
|
function fish_prompt
|
||||||
set_color blue
|
set_color blue
|
||||||
echo -n (whoami)
|
echo -n (whoami)
|
||||||
set_color cyan
|
|
||||||
echo -n '@'
|
|
||||||
set_color magenta
|
set_color magenta
|
||||||
echo -n (prompt_pwd)
|
echo -n (vcprompt -f "(%s:%b%a%m)")
|
||||||
set_color cyan
|
set_color cyan
|
||||||
echo -n '> '
|
echo -n '> '
|
||||||
end
|
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 fish_greeting ""
|
||||||
|
|
||||||
set PATH /usr/local/bin ~/Library/Haskell/bin ~/bin/ /Users/vincent/Source/management-scripts/google-apps/ $PATH
|
set PATH /usr/local/bin ~/Library/Haskell/bin ~/bin/ /Users/vincent/Source/management-scripts/google-apps/ $PATH
|
||||||
|
|
|
||||||
3
fish/functions/edit.fish
Normal file
3
fish/functions/edit.fish
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
function edit
|
||||||
|
emacsclient -no-wait $argv
|
||||||
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue