dotfiles/.config/fish/config.fish

81 lines
2.5 KiB
Fish
Raw Normal View History

2025-09-06 23:01:45 +02:00
if status is-interactive
# Commands to run in interactive sessions can go here
2026-02-11 20:06:51 +01:00
abbr --add ll ll -a
abbr --add adl album-dl.fish
abbr --add vv nvim
abbr --add tr gio trash
abbr --add --set-cursor tldr curl cheat.sh/%
2025-12-25 22:21:17 +01:00
2026-02-17 14:00:48 +01:00
function copy --description 'Copy to clipboard'
fish_clipboard_copy
end
function paste --description 'Paste from clipboard'
fish_clipboard_paste
end
2026-03-02 22:29:47 +01:00
function open --description 'Opens a file with xdg-open detached from shell'
xdg-open $argv &>/dev/null & disown
2026-03-02 22:25:41 +01:00
end
2026-02-17 14:00:48 +01:00
function alacritty --description 'Create new Alacritty window'
2026-02-11 20:06:51 +01:00
command alacritty msg create-window $argv
end
2025-12-31 14:56:36 +01:00
2026-02-17 14:00:48 +01:00
function vman --description 'Uses Neovim as a manpager'
man $argv | nvim +Man!
end
2026-03-02 22:29:47 +01:00
function mvi --description 'Launches mpv with mvi configuration'
2026-02-11 20:06:51 +01:00
mpv --config-dir=$HOME/.config/mvi/ $argv
end
2026-01-28 00:57:01 +01:00
2026-02-11 20:06:51 +01:00
# Colorscheme
2026-03-02 22:25:41 +01:00
set fish_color_normal normal
set fish_color_command brgreen --bold
set fish_color_keyword brred
set fish_color_quote green --italics
set fish_color_redirection yellow
set fish_color_end cyan
set fish_color_error red --underline=curly
set fish_color_param normal
set fish_color_comment brblack
set fish_color_selection normal --bold --background brblack
set fish_color_search_match
set fish_color_history_current
set fish_color_operator yellow
set fish_color_escape white --bold
set fish_color_cwd green
set fish_color_cwd_root red
set fish_color_option brblue
set fish_color_valid_path --underline
set fish_color_autosuggestion white
set fish_color_user brgreen
set fish_color_host normal
set fish_color_host_remote yellow
set fish_color_history_current --bold
set fish_color_status red
set fish_color_cancel white --bold
set fish_pager_color_prefix normal --bold --underline
set fish_pager_color_progress normal --reverse
set fish_pager_color_completion normal
set fish_pager_color_description yellow --italics
set fish_pager_color_selected_background --background brblue
set fish_pager_color_secondary_background
set fish_pager_color_selected_completion black --bold
set fish_pager_color_background
set fish_pager_color_selected_description bryellow --bold --italics
set fish_pager_color_secondary_prefix
set fish_pager_color_secondary_description
set fish_pager_color_selected_prefix black --bold --underline
set fish_pager_color_secondary_completion
2025-12-31 14:56:36 +01:00
end
2026-02-24 16:16:27 +01:00
if test $XDG_CURRENT_DESKTOP = niri
dconf write /org/gnome/desktop/wm/preferences/button-layout "'appmenu'"
else
dconf reset /org/gnome/desktop/wm/preferences/button-layout
end