Files
dotfiles/.config/fish/config.fish
2024-11-08 18:52:35 +01:00

69 lines
2.2 KiB
Fish
Executable File

# Configure Jump
# status --is-interactive; and source (jump shell fish | psub)
# Load all saved ssh keys
#/usr/bin/ssh-add >> &/dev/null&
eval (ssh-agent -c)
function last_history_item
echo $history[1]
end
# add abbreviations
abbr -a -- gcp git cherry-pick
abbr -a -- gs git status
abbr -a -- lgb git lgb
abbr -a !! --position anywhere --function last_history_item
abbr -a mksilent --position anywhere "&>/dev/null&"
abbr -a inbg --position anywhere "&>/dev/null& && jobs | disown"
abbr -a -- rm-orphans "sudo pacman -Qtdq | sudo pacman -Rns -"
abbr -a -- screenl "systemctl hybrid-sleep && hyprlock &>/dev/null&"
abbr -a -- tree "eza -T"
abbr -a -- trd "eza -T -D"
abbr -a -- trl "eza -T -L "
abbr -a -- trld "eza -T -D -L "
abbr -a -- trdl "eza -T -D -L "
abbr -a "packagelist-update" "pacman -Qe | sed 's/ .*//g' | tee ~/Sync/explicitly_installed"
abbr -a "nvim-headless-update" 'nvim --headless "+Lazy! sync" +qa'
abbr -a "nvim-headless-clean" 'nvim --headless "+Lazy! clean" +qa'
alias ll "eza -lh"
alias la "eza -lha"
alias ls "eza"
# Fish syntax highlighting
set -g fish_color_autosuggestion '555' 'brblack'
set -g fish_color_cancel -r
set -g fish_color_command --bold
set -g fish_color_comment red
set -g fish_color_cwd green
set -g fish_color_cwd_root red
set -g fish_color_end brmagenta
set -g fish_color_error brred
set -g fish_color_escape 'bryellow' '--bold'
set -g fish_color_history_current --bold
set -g fish_color_host normal
set -g fish_color_match --background=brblue
set -g fish_color_normal normal
set -g fish_color_operator bryellow
set -g fish_color_param cyan
set -g fish_color_quote yellow
set -g fish_color_redirection brblue
set -g fish_color_search_match 'bryellow' '--background=brblack'
set -g fish_color_selection 'white' '--bold' '--background=brblack'
set -g fish_color_user brgreen
set -g fish_color_valid_path --underline
# exports, execute only once and manually
# set -Ux RUSTC_WRAPPER sccache
# set -Ux ELECTRON_OZONE_PLATFORM_HINT wayland
starship init fish | source
zoxide init --cmd cd fish | source
# pnpm
set -gx PNPM_HOME "/home/felix/.local/share/pnpm"
if not string match -q -- $PNPM_HOME $PATH
set -gx PATH "$PNPM_HOME" $PATH
end
# pnpm end