dotfiles/.config/fish/config.fish

37 lines
971 B
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
end
2025-12-25 22:21:17 +01:00
2025-12-31 14:56:36 +01:00
abbr --add ll ll -a
2026-01-07 13:56:52 +01:00
abbr --add adl album-dl.fish
abbr --add vv nvim
2026-01-15 01:58:32 +01:00
abbr --add tr gio trash
2025-12-31 14:56:36 +01:00
2026-01-28 00:57:01 +01:00
function alacritty
command alacritty msg create-window $argv
end
function mvi --description 'Launches mpv with mvi configuration'
2025-12-31 14:56:36 +01:00
mpv --config-dir=$HOME/.config/mvi/ $argv
end
2025-12-25 22:21:17 +01:00
2026-01-28 00:57:01 +01:00
function open --description 'Opens a file in its default application'
argparse h/help -- $argv
or return
if set -ql _flag_help
echo "open [-h|--help] [STRING]"
return 0
end
niri msg action spawn -- xdg-open $argv
end
2025-12-25 22:21:17 +01:00
# BEGIN opam configuration
# This is useful if you're using opam as it adds:
# - the correct directories to the PATH
# - auto-completion for the opam binary
# This section can be safely removed at any time if needed.
test -r '/home/never/.opam/opam-init/init.fish' && source '/home/never/.opam/opam-init/init.fish' > /dev/null 2> /dev/null; or true
# END opam configuration