-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.fish
More file actions
53 lines (44 loc) · 1.35 KB
/
Copy pathconfig.fish
File metadata and controls
53 lines (44 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
function fish_greeting
echo
echo
echo -e "\e[0;37m (^ヽ--\e[0;31m△\e[0m\e[0;37m<^)\e[0m"
echo -e "\e[0;37m / \e[0;31m~▽\e[0m\e[0m"
echo -e "\e[0;37m 士 0 o 0 士\e[0m"
echo -e "\e[0;37m メ ___ メ\e[0m"
echo -e "\e[0;37m / へ\`-L、\e[0m"
echo -e "\e[0;37m (\e[4;37m~( し′| \e[0m\e[1;37m)\e[0m"
echo -e "\e[0;35;5m かわいい\e[0m"
echo
echo
end
function vi
vim $argv
end
set -x GOPATH $HOME/go
set -x PATH $PATH $GOPATH/bin
set -x PATH $PATH ~/.local/bin/
set -x PATH $PATH ~/bin/
set -x EDITOR vim
function fish_prompt
if test $status -eq 0
set lil_face "•ᴗ•"
else
set lil_face "•-•"
end
set_color normal
if test "$SHOW_BRANCH" = 1
set branch (git rev-parse --abbrev-ref HEAD 2> /dev/null)
echo -n "($branch) "
end
echo -n "(๑$lil_face)⊃━"(prompt_pwd)"━☆゚ "
set_color normal
end
function flash_git
for i in (seq 0 200); printf "\b"; end
test "$SHOW_BRANCH" = 1; and set SHOW_BRANCH 0; or set SHOW_BRANCH 1
commandline -f repaint
end
function fish_user_key_bindings
bind \eg flash_git
end
set -gx SSH_AUTH_SOCK (gnome-keyring-daemon --start | awk -F "=" '$1 == "SSH_AUTH_SOCK" { print $2 }')