2020-11-04 02:03:20 +03:00
|
|
|
#!/usr/bin/fish
|
|
|
|
# Jien's fishrc.
|
|
|
|
|
|
|
|
# No greeting when starting an interactive shell.
|
|
|
|
function fish_greeting
|
|
|
|
end
|
|
|
|
# Left prompt.
|
|
|
|
function fish_prompt --description "Write out the prompt"
|
|
|
|
echo -n $SHPROMPT
|
|
|
|
end
|
|
|
|
|
2021-12-04 21:57:51 +03:00
|
|
|
# Easy quit.
|
|
|
|
function q
|
|
|
|
echo $SHLVL - 1 | bc
|
|
|
|
exit
|
|
|
|
end
|
|
|
|
|
2020-11-04 02:03:20 +03:00
|
|
|
# Right prompt.
|
|
|
|
function fish_right_prompt
|
|
|
|
# Fuck this.
|
|
|
|
end
|
|
|
|
|
|
|
|
set -l color_cwd
|
|
|
|
set -l suffix
|
|
|
|
|
|
|
|
# Colors
|
2021-12-04 21:57:51 +03:00
|
|
|
set fish_color_comment yellow
|
|
|
|
set fish_color_error grey
|
|
|
|
set fish_color_operator $color_cwd
|
|
|
|
set fish_color_autosuggestion "brgrey"
|
|
|
|
set fish_color_command "--bold"
|
2020-11-04 02:03:20 +03:00
|
|
|
|