Остання активність 1755459452

config.fish Неформатований
1function fish_prompt
2 set_color -o red
3 echo -n "> "
4 set_color normal
5end
6
7# From https://github.com/mduvall/dotfiles/blob/master/fish_prompt.fish.
8function fuller_prompt_cwd --description 'Print the current working directory, NOT shortened to fit the prompt'
9 if test "$PWD" != "$HOME"
10 printf "%s" (echo $PWD|sed -e 's|/private||' -e "s|^$HOME|~|")
11 else
12 echo '~'
13 end
14end
15
16function fish_right_prompt
17 set_color -o green
18 echo -n (fuller_prompt_cwd)
19 set_color normal
20end
21
22set -g fish_greeting
23
24set -g -x EDITOR vim
25
26if status is-interactive
27 if type -p zoxide > /dev/null
28 zoxide init fish | source
29 end
30end
31
32# ls alias
33alias la='ls -al'
34alias la='ls -alh'
35
36# git
37alias g='git'
38alias gcl='git clone'
39alias gst='git status'
40alias gp='git push'
41alias gf='git fetch'
42alias gl='git pull'
43alias gd='git diff'
44alias gc='git commit'
45
46# alpine
47alias apks='apk search'
48alias apki='apk info'
49alias apka='doas apk add'
50