Kristell's Commonplace


fish

Tags:
| Desktop | | Dotfiles |

My config for the Friendly Interactive SHell

Main

if status is-interactive
    fastfetch --logo ~/.face
end

Functions

general/one-off

function l --wraps=ls --description 'Make grep pretty'
    ls -l
end

function la --wraps=ls
    ls -la
end

cd

function .. --wraps=cd
    cd ..
end

function ... --wraps=cd
    cd ~
end

function cdj --wraps=pushd
    pushd ~/johnny.decimal/*/*/$argv*
end

mpdpopm

function mpr1 --wraps=mppopm
    mppopm set-rating '*' && mpc next
end

function mpr2 --wraps=mppopm
    mppopm set-rating '**' && mpc next
end

function mpr3 --wraps=mppopm
    mppopm set-rating '***' && mpc next
end

function mpr4 --wraps=mppopm
    mppopm set-rating '****' && mpc next
end

function mpr5 --wraps=mppopm
    mppopm set-rating '*****' && mpc next
end

function mpa0 --wraps=mppopm
    mppopm findadd "(rating == 0)"
end

function mpa1 --wraps=mppopm
    mppopm findadd "(rating == 1)"
end

function mpa2 --wraps=mppopm
    mppopm findadd "(rating == 64)"
end

function mpa3 --wraps=mppopm
    mppopm findadd "(rating == 128)"
end

function mpa4 --wraps=mppopm
    mppopm findadd "(rating == 196)"
end

function mpa5 --wraps=mppopm
    mppopm findadd "(rating == 255)"
end

This is a bad idea, I know it, but I must see it

function mpaa
    mppopm findadd "(rating > 0)"
    mppopm findadd "(rating > 63)"
    mppopm findadd "(rating > 127)"
    mppopm findadd "(rating > 127)"
    mppopm findadd "(rating > 195)"
    mppopm findadd "(rating > 195)"
    mppopm findadd "(rating > 195)"
    mppopm findadd "(rating == 255)"
    mppopm findadd "(rating == 255)"
    mppopm findadd "(rating == 255)"
    mppopm findadd "(rating == 255)"
    mppopm findadd "(rating == 255)"
end
function mpa4+ --wraps=mppopm
    mppopm findadd "(rating >= 196)"
end

apps

function renpy --wraps=./
    ~/application/renpy/renpy.sh
end

nano

function eysh --wraps=nano
    nano ~/.config/fish/~/.config/fish/config.fish
end

wget

function wthr --wraps=wget
    wget -qO- wttr.in/Richmond
end

yay

function update --wraps=yay
    sudo informant read && yay -Scc && yay -Syu && yay -Qqe > ~/.paklist
end
#+property: header-args :tangle ~/.config/sway/config