feat(laptop): add fish and links in alacritty
This commit is contained in:
parent
a9760235e3
commit
7425454bd8
@ -61,3 +61,13 @@ white= '#fcf4dc' # bright white
|
||||
[colors.cursor]
|
||||
text = "#002b36"
|
||||
cursor = "#9cc2c3"
|
||||
|
||||
[[hints.enabled]]
|
||||
binding = { key = "O", mods = "Control|Shift" }
|
||||
command = "xdg-open"
|
||||
hyperlinks = true
|
||||
mouse.enabled = true
|
||||
mouse.mods = "Control"
|
||||
post_processing = true
|
||||
persist = false
|
||||
regex = "(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩‘]+"
|
||||
|
56
laptop/configs/fish/.config/fish/config.fish
Normal file
56
laptop/configs/fish/.config/fish/config.fish
Normal file
@ -0,0 +1,56 @@
|
||||
if status --is-login
|
||||
fish_add_path ~/.local/bin
|
||||
|
||||
set -gx BAT_THEME "Solarized (dark)"
|
||||
set -gx EDITOR "nvim"
|
||||
set -gx DOCKER_HOST unix://$XDG_RUNTIME_DIR/podman/podman.sock
|
||||
set -gx LS_COLORS "$(vivid generate solarized-dark)"
|
||||
set -gx TERMINAL alacritty
|
||||
|
||||
if test -z "$WAYLAND_DISPLAY" && test "$XDG_VTNR" -eq 1
|
||||
set -gx XDG_CURRENT_DESKTOP "sway"
|
||||
sway
|
||||
end
|
||||
end
|
||||
if status is-interactive
|
||||
alias g="git"
|
||||
alias ls="~/scripts/elash.sh"
|
||||
alias l="ls -lah"
|
||||
alias v="nvim"
|
||||
alias reboot="loginctl reboot"
|
||||
alias hi="loginctl hibernate"
|
||||
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="loginctl 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
laptop/configs/fish/.config/fish/fish_variables
Normal file
43
laptop/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:/jbx/\x2elocal/bin\x1e/yang/\x2elocal/bin
|
@ -0,0 +1,8 @@
|
||||
function fish_command_not_found
|
||||
set -l pkgs (apk search --quiet cmd:$argv[1])
|
||||
set pkgs (string join '|' $pkgs)
|
||||
echo "$argv[1]: not found"
|
||||
if test -n "$pkgs"
|
||||
echo " install with: apk add $pkgs"
|
||||
end
|
||||
end
|
@ -0,0 +1,3 @@
|
||||
function fish_greeting
|
||||
# no op
|
||||
end
|
21
laptop/configs/fish/.config/fish/functions/fish_prompt.fish
Normal file
21
laptop/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