55 lines
1.3 KiB
Fish
Executable File
55 lines
1.3 KiB
Fish
Executable File
bass source /etc/profile
|
|
source $HOME/.config/fish/config.fish2
|
|
|
|
fish_add_path $HOME/.local/bin
|
|
|
|
if status is-interactive
|
|
# Commands to run in interactive sessions can go here
|
|
set fish_cursor_default block
|
|
set -Ux SHELL /bin/fish
|
|
|
|
set -Ux FZF_DEFAULT_OPTS "\
|
|
--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \
|
|
--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \
|
|
--color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8"
|
|
|
|
fzf_key_bindings
|
|
fish_hybrid_key_bindings
|
|
|
|
sh -c '
|
|
if [ ! -f "/run/user/$EUID/fish.please.lock" ]; then
|
|
please
|
|
touch "/run/user/$EUID/fish.please.lock"
|
|
else
|
|
fortune -o | ponysay -b round
|
|
fi
|
|
'
|
|
|
|
starship init fish | source
|
|
end
|
|
set fish_greeting
|
|
|
|
function bind_bang
|
|
switch (commandline -t)[-1]
|
|
case "!"
|
|
commandline -t -- $history[1]
|
|
commandline -f repaint
|
|
case "*"
|
|
commandline -i !
|
|
end
|
|
end
|
|
|
|
function bind_dollar
|
|
switch (commandline -t)[-1]
|
|
case "!"
|
|
commandline -f backward-delete-char history-token-search-backward
|
|
case "*"
|
|
commandline -i '$'
|
|
end
|
|
end
|
|
|
|
function fish_user_key_bindings
|
|
bind ! bind_bang
|
|
bind '$' bind_dollar
|
|
end
|