feat(desktop)!: add fish shell!
This commit is contained in:
parent
655b3150dc
commit
b4b9645cc3
50
desktop/configs/fish/.config/fish/config.fish
Normal file
50
desktop/configs/fish/.config/fish/config.fish
Normal file
@ -0,0 +1,50 @@
|
||||
if status --is-login
|
||||
fish_add_path ~/.local/bin
|
||||
|
||||
set -gx BAT_THEME "Solarized (light)"
|
||||
set -gx EDITOR "nvim"
|
||||
|
||||
if test -z "$WAYLAND_DISPLAY" && test "$XDG_VTNR" -eq 1
|
||||
set -gx XDG_CURRENT_DESKTOP "sway"
|
||||
sway
|
||||
end
|
||||
end
|
||||
if status is-interactive
|
||||
alias ls="bash ~/scripts/elash.sh"
|
||||
alias v="nvim"
|
||||
alias reboot="systemctl reboot"
|
||||
alias hr="date +'%Hh:%M, %d-%m-%Y'"
|
||||
alias ff="fastfetch"
|
||||
alias feh="imv"
|
||||
alias lg="lazygit"
|
||||
alias cpr="cd ~/repos/cports-docker && docker compose run --build --rm cports"
|
||||
alias cop="wl-copy"
|
||||
alias poweroff="systemctl poweroff"
|
||||
alias cat="bat"
|
||||
end
|
||||
|
||||
function pst
|
||||
set -l file
|
||||
set -l use_ansifilter false
|
||||
|
||||
if command -v ansifilter > /dev/null
|
||||
set use_ansifilter true
|
||||
end
|
||||
|
||||
if command test -p /dev/stdin
|
||||
set file (mktemp)
|
||||
if test $use_ansifilter = true
|
||||
ansifilter > $file
|
||||
else
|
||||
cat > $file
|
||||
end
|
||||
else if test -n "$argv[1]"
|
||||
set file "$argv[1]"
|
||||
end
|
||||
|
||||
curl -F "file=@$file" -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.xyz
|
||||
|
||||
if command test -p /dev/stdin
|
||||
rm "$file"
|
||||
end
|
||||
end
|
43
desktop/configs/fish/.config/fish/fish_variables
Normal file
43
desktop/configs/fish/.config/fish/fish_variables
Normal file
@ -0,0 +1,43 @@
|
||||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_initialized:3400
|
||||
SETUVAR fish_color_autosuggestion:767676
|
||||
SETUVAR fish_color_cancel:\x2d\x2dreverse
|
||||
SETUVAR fish_color_command:0087ff
|
||||
SETUVAR fish_color_comment:586e75
|
||||
SETUVAR fish_color_cwd:green
|
||||
SETUVAR fish_color_cwd_root:red
|
||||
SETUVAR fish_color_end:00d75f
|
||||
SETUVAR fish_color_error:dc322f
|
||||
SETUVAR fish_color_escape:00a6b2
|
||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||
SETUVAR fish_color_host:normal
|
||||
SETUVAR fish_color_host_remote:\x1d
|
||||
SETUVAR fish_color_keyword:\x1d
|
||||
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
|
||||
SETUVAR fish_color_normal:normal
|
||||
SETUVAR fish_color_operator:00a6b2
|
||||
SETUVAR fish_color_option:\x1d
|
||||
SETUVAR fish_color_param:00afaf
|
||||
SETUVAR fish_color_quote:d7af5f
|
||||
SETUVAR fish_color_redirection:6c71c4
|
||||
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dblack
|
||||
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_status:red
|
||||
SETUVAR fish_color_user:brgreen
|
||||
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
||||
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||
SETUVAR fish_pager_color_background:\x1d
|
||||
SETUVAR fish_pager_color_completion:B3A06D
|
||||
SETUVAR fish_pager_color_description:B3A06D
|
||||
SETUVAR fish_pager_color_prefix:cyan\x1e\x2d\x2dunderline
|
||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||
SETUVAR fish_pager_color_secondary_background:\x1d
|
||||
SETUVAR fish_pager_color_secondary_completion:\x1d
|
||||
SETUVAR fish_pager_color_secondary_description:\x1d
|
||||
SETUVAR fish_pager_color_secondary_prefix:\x1d
|
||||
SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_pager_color_selected_completion:\x1d
|
||||
SETUVAR fish_pager_color_selected_description:\x1d
|
||||
SETUVAR fish_pager_color_selected_prefix:\x1d
|
||||
SETUVAR fish_user_paths:/yang/\x2elocal/bin
|
@ -0,0 +1,3 @@
|
||||
function fish_greeting
|
||||
# no op
|
||||
end
|
21
desktop/configs/fish/.config/fish/functions/fish_prompt.fish
Normal file
21
desktop/configs/fish/.config/fish/functions/fish_prompt.fish
Normal file
@ -0,0 +1,21 @@
|
||||
function fish_prompt
|
||||
# This is a simple prompt. It looks like
|
||||
# alfa@nobby /path/to/dir $
|
||||
# with the path shortened and colored
|
||||
# and a "#" instead of a "$" when run as root.
|
||||
set -l symbol ' $ '
|
||||
set -l color $fish_color_cwd
|
||||
if fish_is_root_user
|
||||
set symbol ' # '
|
||||
set -q fish_color_cwd_root
|
||||
and set color $fish_color_cwd_root
|
||||
end
|
||||
|
||||
echo -n $USER@$hostname
|
||||
|
||||
set_color $color
|
||||
echo -n (prompt_pwd)
|
||||
set_color normal
|
||||
|
||||
echo -n $symbol
|
||||
end
|
Loading…
Reference in New Issue
Block a user