2021-01-07 14:23:59 +00:00
|
|
|
#!/usr/bin/fish
|
2022-03-21 03:12:23 +00:00
|
|
|
rm -r ~/.config/fish/*
|
2023-01-29 21:30:32 +00:00
|
|
|
stow --no-folding -d ~/.dotfiles -t ~/.config/fish fish
|
2022-03-21 03:12:23 +00:00
|
|
|
|
|
|
|
curl -sL https://git.io/fisher | source
|
2022-11-08 22:38:12 +00:00
|
|
|
fish_update_completions
|
2023-10-13 15:31:32 +00:00
|
|
|
fisher install {jorgebucaran/replay,PatrickF1/fzf}.fish
|
2022-11-13 20:22:41 +00:00
|
|
|
ln -s /usr/share/autojump/autojump.fish ~/.config/fish/conf.d
|
2023-10-13 15:31:32 +00:00
|
|
|
set -U fish_features all
|
2022-11-13 20:22:41 +00:00
|
|
|
starship init fish --print-full-init > ~/.config/fish/conf.d/starship.fish
|
2021-01-07 14:23:59 +00:00
|
|
|
|
2022-03-21 03:12:23 +00:00
|
|
|
alias a 'alias -s'
|
|
|
|
a acmus 'timeout (math 60 - (date +%M))m mpv --loop https://acmusicext.com/static/$argv/sunny/(date +%-I%P).ogg'
|
2022-01-21 19:09:32 +00:00
|
|
|
a aliases 'v (env which aliases); command aliases'
|
2022-06-19 17:03:20 +00:00
|
|
|
a all2jxl 'fd -e{png,jpg,ppm} -x cjxl -e 8 -d 0 {} {.}.jxl \; -x rm'
|
2023-01-24 01:33:22 +00:00
|
|
|
a awall 'xwinwrap -fdt -fs -- mpv -wid WID ~/Pictures/Wall/Anim/$argv* --loop --no-osc'
|
2022-02-02 02:24:07 +00:00
|
|
|
a base64d 'echo (echo $argv | base64 -d 2>/dev/null) | tee /dev/stderr 2>| clip;:'
|
2023-04-08 19:28:19 +00:00
|
|
|
a clip 'xsel -ib'
|
2021-01-24 05:49:08 +00:00
|
|
|
a cpugov 's cpupower frequency-set -g performance'
|
2022-10-18 14:28:37 +00:00
|
|
|
a dirdl 'wget -r -k -p -np -e robots=off'
|
2023-09-17 20:58:45 +00:00
|
|
|
a dl 'not test "$argv" && cd ~/Downloads || aria2c -c -{j,s,x}16 --http-accept-gzip'
|
2021-01-07 14:23:59 +00:00
|
|
|
a dot 'cd ~/.dotfiles'
|
2023-10-13 15:31:32 +00:00
|
|
|
a drivedl 'dl https://docs.google.com/uc?export=download&id=(echo $argv | cut -d/ -f6)&confirm=t'
|
2022-09-11 23:38:40 +00:00
|
|
|
a epubpack 'cd $argv && zip -0rX ../(basename $argv).epub mimetype *; cd ..;:'
|
2021-01-24 05:49:08 +00:00
|
|
|
a ff 'fd -HILi -Edosdevices -E.git'
|
2023-10-26 05:58:32 +00:00
|
|
|
a fumount 'fusermount -u'
|
2021-01-07 14:23:59 +00:00
|
|
|
a g git
|
2023-06-03 20:29:18 +00:00
|
|
|
a gittop 'cd (git root)'
|
2021-01-07 14:23:59 +00:00
|
|
|
a giveme 's chown $USER'
|
2022-03-21 03:12:23 +00:00
|
|
|
a gsopti 'fd -e pdf -x gs -sDEVICE=pdfwrite -dNOPAUSE -sOutputFile={}1 {} \; -x mv {}1 {}'
|
2021-01-07 14:23:59 +00:00
|
|
|
a hardinfo 'inxi -SPARM -GCDN -v1 -xGCRS -Fxz'
|
2021-07-10 01:10:18 +00:00
|
|
|
a imgsum 'printf "$argv: " && identify -format "%#\n"'
|
2023-10-13 15:31:32 +00:00
|
|
|
a kittab 'kitty @ launch --type=tab --cwd $PWD'
|
2021-01-07 14:23:59 +00:00
|
|
|
a l ls
|
2021-12-31 19:29:17 +00:00
|
|
|
a la 'l -A'
|
2023-08-31 17:11:55 +00:00
|
|
|
a launcher 'rofi -combi-modi drun,run,window -modi combi -show'
|
2022-01-12 23:02:54 +00:00
|
|
|
a listen 'pactl list | grep loop && set t un; pactl "$t"load-module module-loopback'
|
2023-03-27 15:33:00 +00:00
|
|
|
a nix '. ~/.nix-profile/etc/profile.d/nix.fish; command nix'
|
2022-03-21 03:12:23 +00:00
|
|
|
a nsmd 'netsurf (md2html $argv | psub -s .html);:'
|
2023-10-13 15:31:32 +00:00
|
|
|
a nsp 'netsurf (pandoc $argv -s -t html | psub -s .html);:'
|
2021-01-07 14:23:59 +00:00
|
|
|
a off shutdown
|
2022-03-21 03:12:23 +00:00
|
|
|
a png2webp 'fd -e png -x cwebp -z 9 -mt {} -o {.}.webp \; -x rm'
|
2023-10-13 15:31:32 +00:00
|
|
|
a qb 'qutebrowser --target auto'
|
2022-10-06 18:53:03 +00:00
|
|
|
a qutainer 'qutebrowser --temp-basedir'
|
2023-10-13 15:31:32 +00:00
|
|
|
a re 'systemctl reboot -i'
|
2021-09-25 05:28:09 +00:00
|
|
|
a rmdirs 'ff -t d -x rmdir -p'
|
2021-07-10 01:10:18 +00:00
|
|
|
a rmlinks 'ff -t l -x rm'
|
2023-07-27 15:39:40 +00:00
|
|
|
a s 'doas env "PATH=$PATH"'
|
2023-06-03 16:00:25 +00:00
|
|
|
a ssh 'kitty +kitten ssh'
|
2023-02-05 21:11:52 +00:00
|
|
|
a sus 'systemctl suspend'
|
2021-10-08 19:24:27 +00:00
|
|
|
a tar bsdtar
|
2021-01-07 14:23:59 +00:00
|
|
|
a v vi
|
2022-03-21 03:12:23 +00:00
|
|
|
a venv 'python3 -m venv venv && source venv/bin/activate.fish && pip3 install -r requirements.txt'
|
2021-01-07 14:23:59 +00:00
|
|
|
a vi nvim
|
2021-08-11 00:14:59 +00:00
|
|
|
a wallp 'gsettings set org.gnome.desktop.background picture-uri file://(realpath $argv);:'
|
2023-04-08 19:28:19 +00:00
|
|
|
a ydl 'yt-dlp'
|
2021-08-10 00:46:26 +00:00
|
|
|
|
2023-01-18 22:05:43 +00:00
|
|
|
a 7zstd '7z a -m0=zstd -mx22 -mmt=8 -mfb=273 -md=1536m -ms=on (realpath $argv[1]).7z'
|
|
|
|
a compress '7z a -m0=flzma2 -mx9 -mmt=8 -mfb=273 -md=1536m -ms=on (realpath $argv[1]).7z'
|
2022-11-08 16:10:49 +00:00
|
|
|
a dwarf 'mkdwarfs -i . -o $PWD.dwarfs -f'
|
2022-02-02 02:24:07 +00:00
|
|
|
a dwarfmount 'dwarfs -f $argv (mktemp -d | tee /dev/tty /dev/stderr 2>| clip);:'
|
2023-02-27 04:48:17 +00:00
|
|
|
a dwarfs 'dwarfs -o offset=auto -o tidy_strategy=swap -o workers=(nproc)'
|
2022-10-03 03:02:15 +00:00
|
|
|
a dwarfs2null 'dwarfsextract -o /dev/null -f gnutar -i'
|
|
|
|
a dwarfs2tar 'dwarfsextract -o dwarfs-root.tar -f gnutar -i'
|
2021-02-25 21:54:50 +00:00
|
|
|
a redwarf 'mkdwarfs -o redwarf.dwarfs --recompress -i'
|
|
|
|
a squash 'mksquashfs . $PWD.squashfs -comp zstd -b 1M -Xcompression-level 22'
|
2021-03-06 23:40:15 +00:00
|
|
|
a undwarfs 'mkdir dwarfs-root; dwarfsextract -o dwarfs-root -i'
|
2022-05-19 03:47:32 +00:00
|
|
|
a xcompress 'fxz -T0 -9 -k'
|
2021-01-07 14:23:59 +00:00
|
|
|
|
2023-09-07 16:53:42 +00:00
|
|
|
a catbox 'curl https://catbox.moe/user/api.php -F reqtype=fileupload -F fileToUpload=@$argv;:'
|
|
|
|
a temp 'curl temp.sh -T'
|
|
|
|
a tldr 'curl -s https://raw.githubusercontent.com/tldr-pages/tldr/main/pages/{common,linux}/$argv.md;:'
|
|
|
|
a transfer 'curl https://transfer.sh/(basename $argv) -T'
|
|
|
|
|
2023-06-01 14:57:08 +00:00
|
|
|
a history_find 'history -p (string sub -s 2 $argv[1]) | head -n1;:'
|
|
|
|
a history_last 'history -n1;:'
|
|
|
|
|
2023-09-17 20:58:45 +00:00
|
|
|
for i in (cut -d ' ' -f1 < ~/.config/qutebrowser/quickmarks)
|
2023-10-13 15:31:32 +00:00
|
|
|
a $i "qutebrowser / \":open $i\""
|
2021-01-07 14:23:59 +00:00
|
|
|
end
|
|
|
|
|
2023-10-13 15:31:32 +00:00
|
|
|
for i in deemix encodec git-sim lightnovel-crawler mandown mangadex-downloader\
|
|
|
|
mathicsscript pdf2docx portablemc ratarmount scdl soundscrape spleeter
|
2021-01-07 14:23:59 +00:00
|
|
|
a $i "pipx run $i"
|
|
|
|
end
|
2023-10-13 15:31:32 +00:00
|
|
|
a in2csv 'pipx run --spec csvkit in2csv'
|
2022-11-08 16:10:49 +00:00
|
|
|
a mathics 'pipx run --spec mathics-django mathicsserver'
|