From af94971b7d37b8ecf97a216bedc801de2c8a5a2d Mon Sep 17 00:00:00 2001 From: rhpidfyre Date: Tue, 11 Mar 2025 20:49:21 -0400 Subject: [PATCH] add src/config.fish --- src/config.fish | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/config.fish diff --git a/src/config.fish b/src/config.fish new file mode 100644 index 0000000..dedb7d7 --- /dev/null +++ b/src/config.fish @@ -0,0 +1,40 @@ +function __base-aliases + set -l _weather_service wttr.in + + alias pacman-mirrors="sudo reflector --protocol https --country US --age 24 --verbose --sort rate -l 100 --save /etc/pacman.d/mirrorlist" + alias weather="curl $_weather_service" + alias grep="grep --color=auto" + alias ccd="cd && c" + alias la="ls -a" + alias c="clear" +end + +function __configs + set -l _editor xdg-open + + alias fish-config="$_editor ~/.config/fish/config.fish" + alias wez-config="$_editor ~/.config/wezterm/wezterm.lua" +end + +function __media + function ytmp3 + yt-dlp --embed-thumbnail --extract-audio --audio-format mp3 --add-metadata -o "%(uploader)s - %(title)s.%(ext)s" $argv + end + function soundcloudmp3 + yt-dlp --embed-thumbnail --audio-format mp3 --add-metadata -o "%(uploader)s - %(title)s.%(ext)s" $argv + end +end + +function __sd + #fix + function stable-diffusion-ui-server + /opt/easy-diffusion/start.sh $argv + end +end + +if status is-interactive + __base-aliases + __configs + __media + __sd +end