diff --git a/.config/fish/functions/D.fish b/.config/fish/functions/D.fish index 2005c14..fc44182 100644 --- a/.config/fish/functions/D.fish +++ b/.config/fish/functions/D.fish @@ -1,3 +1,3 @@ function D - cd $D $argv; + cd $D $argv end diff --git a/.config/fish/functions/build.fish b/.config/fish/functions/build.fish index 4dde7b0..927d123 100644 --- a/.config/fish/functions/build.fish +++ b/.config/fish/functions/build.fish @@ -1,12 +1,12 @@ function build s printf \ - gp - ./autogen.sh - ./configure --prefix=/usr - cmake -DCMAKE_INSTALL_PREFIX=/usr . - make - s make install - meson --prefix=/usr build - ninja -C build - sudo ninja -C build install + gp + ./autogen.sh + ./configure --prefix=/usr + cmake -DCMAKE_INSTALL_PREFIX=/usr . + make + s make install + meson --prefix=/usr build + ninja -C build + sudo ninja -C build install end diff --git a/.config/fish/functions/cd.fish b/.config/fish/functions/cd.fish index 5ea9842..2e86b9c 100644 --- a/.config/fish/functions/cd.fish +++ b/.config/fish/functions/cd.fish @@ -1,3 +1,4 @@ +# Defined in /tmp/fish.pCCKfo/cd.fish @ line 2 function cd - builtin cd (realpath $argv) + builtin cd (realpath $argv 2> /dev/null) end diff --git a/.config/fish/functions/clean.fish b/.config/fish/functions/clean.fish index 231dd46..74626f6 100644 --- a/.config/fish/functions/clean.fish +++ b/.config/fish/functions/clean.fish @@ -1,16 +1,16 @@ function clean - s printf \ - fc-cache -f -v - se clean -y - se dc -y - se rmo -y - se rdb -y - s journalctl --vacuum-size=1K - bleachbit -c (bleachbit -l|grep -Ev 'system.free_disk_space|transmission|system.memory') - s bleachbit -c (bleachbit -l|grep -Ev 'system.free_disk_space|transmission|system.memory') - rm -r ~/.cache/* - rm -r ~/.nv/* - rm -r ~/.local/share/nvim/swap/ - rm -r $D/Games/Emulators/*/canary - rm -r $D/Games/Emulators/*/*og* + s printf \ + fc-cache -f -v + se clean -y + se dc -y + se rmo -y + se rdb -y + s journalctl --vacuum-size=1K + bleachbit -c (bleachbit -l|grep -Ev 'system.free_disk_space|transmission|system.memory') + s bleachbit -c (bleachbit -l|grep -Ev 'system.free_disk_space|transmission|system.memory') + rm -r ~/.cache/* + rm -r ~/.nv/* + rm -r ~/.local/share/nvim/swap/ + rm -r $D/Games/Emulators/*/canary + rm -r $D/Games/Emulators/*/*og* end diff --git a/.config/fish/functions/cpugov.fish b/.config/fish/functions/cpugov.fish index 1c20fca..9fae8fb 100644 --- a/.config/fish/functions/cpugov.fish +++ b/.config/fish/functions/cpugov.fish @@ -1,9 +1,9 @@ function cpugov echo -e "The current state is "(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) - if [ (cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) != "performance" ] - s -i cpupower frequency-set -g performance >/dev/null - else - s cpupower frequency-set -g powersave >/dev/null - end - echo -e "The current state is "(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) + if [ (cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) != "performance" ] + s -i cpupower frequency-set -g performance >/dev/null + else + s cpupower frequency-set -g powersave >/dev/null + end + echo -e "The current state is "(cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor) end diff --git a/.config/fish/functions/dl.fish b/.config/fish/functions/dl.fish index 890efa3..6f5f9fe 100644 --- a/.config/fish/functions/dl.fish +++ b/.config/fish/functions/dl.fish @@ -1,7 +1,7 @@ function dl if test $argv - aria2c --file-allocation=none -c -x 16 -s 16 $argv - else + aria2c --file-allocation=none -c -x 16 -s 16 $argv + else cd ~/Downloads/ - end + end end diff --git a/.config/fish/functions/dot.fish b/.config/fish/functions/dot.fish index 88875d0..44e6201 100644 --- a/.config/fish/functions/dot.fish +++ b/.config/fish/functions/dot.fish @@ -1,3 +1,3 @@ function dot - cd ~/.dotfiles $argv; + cd ~/.dotfiles $argv end diff --git a/.config/fish/functions/fe.fish b/.config/fish/functions/fe.fish index 83b986c..72bd361 100644 --- a/.config/fish/functions/fe.fish +++ b/.config/fish/functions/fe.fish @@ -1,3 +1,3 @@ function fe - funced $argv; + funced $argv end diff --git a/.config/fish/functions/ff.fish b/.config/fish/functions/ff.fish index 15ae44b..dee8723 100644 --- a/.config/fish/functions/ff.fish +++ b/.config/fish/functions/ff.fish @@ -1,5 +1,5 @@ function ff fd\ - -E sys -E caches -E cache -E .cache -E graphicPacks -E proc -E dosdevices -E .git\ - -H -d 5 -L -i $argv + -E sys -E caches -E cache -E .cache -E graphicPacks -E proc -E dosdevices -E .git\ + -H -d 5 -L -i $argv end diff --git a/.config/fish/functions/fish_user_key_bindings.fish b/.config/fish/functions/fish_user_key_bindings.fish index f7d3381..a9dd96a 100644 --- a/.config/fish/functions/fish_user_key_bindings.fish +++ b/.config/fish/functions/fish_user_key_bindings.fish @@ -1,6 +1,6 @@ function fish_user_key_bindings bind \co 'fff' - bind \eo 'cd (ffd | fzf)' - bind \ed 'ncdu' - bind \eg 'git log; git status' + bind \eo 'cd (ffd | fzf)' + bind \ed 'ncdu' + bind \eg 'git log; git status' end diff --git a/.config/fish/functions/fruitdl.fish b/.config/fish/functions/fruitdl.fish index f0c38ba..a6f6127 100644 --- a/.config/fish/functions/fruitdl.fish +++ b/.config/fish/functions/fruitdl.fish @@ -1,9 +1,9 @@ function fruitdl - cd $D/Games/Emulators/$argv[2] - rm -r $argv[1] - set file (curl -sL github.com/$argv[2]-emu/$argv[2]-$argv[1]/releases/latest| grep -om1 $argv[2]-emu/$argv[2]-$argv[1]/releases/download/$argv[1]-[0-9]\*/$argv[2]-linux-[0-9]\*-[0-9a-f]\*).7z - dl http://github.com/$file - set file (basename $file) - 7z x $file - rm $file + cd $D/Games/Emulators/$argv[2] + rm -r $argv[1] + set file (curl -sL github.com/$argv[2]-emu/$argv[2]-$argv[1]/releases/latest| grep -om1 $argv[2]-emu/$argv[2]-$argv[1]/releases/download/$argv[1]-[0-9]\*/$argv[2]-linux-[0-9]\*-[0-9a-f]\*).7z + dl http://github.com/$file + set file (basename $file) + 7z x $file + rm $file end diff --git a/.config/fish/functions/fs.fish b/.config/fish/functions/fs.fish index d7d9c18..c55f66f 100644 --- a/.config/fish/functions/fs.fish +++ b/.config/fish/functions/fs.fish @@ -1,3 +1,3 @@ function fs - funcsave $argv; + funcsave $argv end diff --git a/.config/fish/functions/g.fish b/.config/fish/functions/g.fish index c9b43b9..55158ae 100644 --- a/.config/fish/functions/g.fish +++ b/.config/fish/functions/g.fish @@ -1,3 +1,3 @@ function g - git $argv; + git $argv end diff --git a/.config/fish/functions/ga.fish b/.config/fish/functions/ga.fish index 7908ff9..b4a99e8 100644 --- a/.config/fish/functions/ga.fish +++ b/.config/fish/functions/ga.fish @@ -1,3 +1,3 @@ function ga - git commit -a $argv; + git commit -a $argv end diff --git a/.config/fish/functions/gad.fish b/.config/fish/functions/gad.fish index b1dbd6a..3002c18 100644 --- a/.config/fish/functions/gad.fish +++ b/.config/fish/functions/gad.fish @@ -1,3 +1,3 @@ function gad - git add $argv; + git add $argv end diff --git a/.config/fish/functions/gb.fish b/.config/fish/functions/gb.fish index 0c92adc..a368344 100644 --- a/.config/fish/functions/gb.fish +++ b/.config/fish/functions/gb.fish @@ -1,3 +1,3 @@ function gb - git branch $argv; + git branch $argv end diff --git a/.config/fish/functions/gc.fish b/.config/fish/functions/gc.fish index 8467248..cea3d55 100644 --- a/.config/fish/functions/gc.fish +++ b/.config/fish/functions/gc.fish @@ -1,3 +1,3 @@ function gc - git commit $argv; + git commit $argv end diff --git a/.config/fish/functions/gca.fish b/.config/fish/functions/gca.fish index 5de9ff3..55f78d3 100644 --- a/.config/fish/functions/gca.fish +++ b/.config/fish/functions/gca.fish @@ -1,3 +1,3 @@ function gca - git commit --amend $argv; + git commit --amend $argv end diff --git a/.config/fish/functions/gch.fish b/.config/fish/functions/gch.fish index 74b74ff..20e7a26 100644 --- a/.config/fish/functions/gch.fish +++ b/.config/fish/functions/gch.fish @@ -1,3 +1,3 @@ function gch - git checkout $argv; + git checkout $argv end diff --git a/.config/fish/functions/gg.fish b/.config/fish/functions/gg.fish index 1641f45..38deafc 100644 --- a/.config/fish/functions/gg.fish +++ b/.config/fish/functions/gg.fish @@ -1,3 +1,3 @@ function gg - git clone $argv; + git clone $argv end diff --git a/.config/fish/functions/giveme.fish b/.config/fish/functions/giveme.fish index 73726f3..edc3d8d 100644 --- a/.config/fish/functions/giveme.fish +++ b/.config/fish/functions/giveme.fish @@ -1,5 +1,5 @@ function giveme for i in (ff) - s chown $USER $i - end + s chown $USER $i + end end diff --git a/.config/fish/functions/gl.fish b/.config/fish/functions/gl.fish index 69d104f..410b14d 100644 --- a/.config/fish/functions/gl.fish +++ b/.config/fish/functions/gl.fish @@ -1,3 +1,3 @@ function gl - git log $argv; + git log $argv end diff --git a/.config/fish/functions/gp.fish b/.config/fish/functions/gp.fish index abbd54d..c8a5dca 100644 --- a/.config/fish/functions/gp.fish +++ b/.config/fish/functions/gp.fish @@ -1,3 +1,3 @@ function gp - git pull $argv; + git pull $argv end diff --git a/.config/fish/functions/gpu.fish b/.config/fish/functions/gpu.fish index d26af3e..99cd99b 100644 --- a/.config/fish/functions/gpu.fish +++ b/.config/fish/functions/gpu.fish @@ -1,3 +1,3 @@ function gpu - git push $argv; + git push $argv end diff --git a/.config/fish/functions/gpuf.fish b/.config/fish/functions/gpuf.fish index 619126e..64db4b0 100644 --- a/.config/fish/functions/gpuf.fish +++ b/.config/fish/functions/gpuf.fish @@ -1,3 +1,3 @@ function gpuf - git push -f $argv; + git push -f $argv end diff --git a/.config/fish/functions/gs.fish b/.config/fish/functions/gs.fish index f07b18f..2251572 100644 --- a/.config/fish/functions/gs.fish +++ b/.config/fish/functions/gs.fish @@ -1,3 +1,3 @@ function gs - git status $argv; + git status $argv end diff --git a/.config/fish/functions/gsu.fish b/.config/fish/functions/gsu.fish index 31bad0a..21e7be6 100644 --- a/.config/fish/functions/gsu.fish +++ b/.config/fish/functions/gsu.fish @@ -1,4 +1,4 @@ function gsu git submodule update --init --recursive - git submodule foreach git pull origin master + git submodule foreach git pull origin master end diff --git a/.config/fish/functions/gupall.fish b/.config/fish/functions/gupall.fish index 81a1c8f..252f6c1 100644 --- a/.config/fish/functions/gupall.fish +++ b/.config/fish/functions/gupall.fish @@ -1,7 +1,7 @@ function gupall for i in * - cd $i - git pull - cd .. - end + cd $i + git pull + cd .. + end end diff --git a/.config/fish/functions/hardinfo.fish b/.config/fish/functions/hardinfo.fish index da31dc2..18aada9 100644 --- a/.config/fish/functions/hardinfo.fish +++ b/.config/fish/functions/hardinfo.fish @@ -1,3 +1,3 @@ function hardinfo - inxi -SPARM -GCDN -v1 -xGCRS -Fxz $argv; + inxi -SPARM -GCDN -v1 -xGCRS -Fxz $argv end diff --git a/.config/fish/functions/l.fish b/.config/fish/functions/l.fish index 0126755..4a3335d 100644 --- a/.config/fish/functions/l.fish +++ b/.config/fish/functions/l.fish @@ -1,3 +1,3 @@ function l - ls $argv; + ls $argv end diff --git a/.config/fish/functions/la.fish b/.config/fish/functions/la.fish new file mode 100644 index 0000000..2549be8 --- /dev/null +++ b/.config/fish/functions/la.fish @@ -0,0 +1,3 @@ +function la + ls -a $argv +end diff --git a/.config/fish/functions/listen.fish b/.config/fish/functions/listen.fish index 2c8ffc1..d6d539d 100644 --- a/.config/fish/functions/listen.fish +++ b/.config/fish/functions/listen.fish @@ -1,7 +1,7 @@ function listen if pactl list short modules | grep loopback - pactl unload-module module-loopback - else - pactl load-module module-loopback - end + pactl unload-module module-loopback + else + pactl load-module module-loopback + end end diff --git a/.config/fish/functions/mcs.fish b/.config/fish/functions/mcs.fish index 9cb36cc..f9349ca 100644 --- a/.config/fish/functions/mcs.fish +++ b/.config/fish/functions/mcs.fish @@ -1,4 +1,4 @@ function mcs cd $D/Games/Minecraft/Server - java -Xmx8G -Xms1G -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:ParallelGCThreads=4 -jar server.jar nogui + java -Xmx8G -Xms1G -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:ParallelGCThreads=4 -jar server.jar nogui end diff --git a/.config/fish/functions/motherfuckgit.fish b/.config/fish/functions/motherfuckgit.fish index 6748013..6d6ab47 100644 --- a/.config/fish/functions/motherfuckgit.fish +++ b/.config/fish/functions/motherfuckgit.fish @@ -1,7 +1,7 @@ function motherfuckgit git clean -xfd - git submodule foreach --recursive git clean -xfd - git reset --hard - git submodule foreach --recursive git reset --hard - git submodule update --init --recursive + git submodule foreach --recursive git clean -xfd + git reset --hard + git submodule foreach --recursive git reset --hard + git submodule update --init --recursive end diff --git a/.config/fish/functions/off.fish b/.config/fish/functions/off.fish index c4b56cc..f677437 100644 --- a/.config/fish/functions/off.fish +++ b/.config/fish/functions/off.fish @@ -1,3 +1,4 @@ +# Defined in /tmp/fish.kauClW/off.fish @ line 2 function off shutdown $argv; exit end diff --git a/.config/fish/functions/sou.fish b/.config/fish/functions/sou.fish index 238dfd9..fc23d6b 100644 --- a/.config/fish/functions/sou.fish +++ b/.config/fish/functions/sou.fish @@ -1,3 +1,3 @@ function sou - cd $D/Source $argv; + cd $D/Source $argv end diff --git a/.config/fish/functions/v.fish b/.config/fish/functions/v.fish index b5aeb48..6ee7929 100644 --- a/.config/fish/functions/v.fish +++ b/.config/fish/functions/v.fish @@ -1,3 +1,3 @@ function v - nvim $argv; + nvim $argv end diff --git a/.config/fish/functions/vi.fish b/.config/fish/functions/vi.fish index 111b5b4..0ebe553 100644 --- a/.config/fish/functions/vi.fish +++ b/.config/fish/functions/vi.fish @@ -1,3 +1,3 @@ function vi - nvim $argv; + nvim $argv end diff --git a/.config/fish/functions/wallp.fish b/.config/fish/functions/wallp.fish index 52e3e74..4b861b4 100644 --- a/.config/fish/functions/wallp.fish +++ b/.config/fish/functions/wallp.fish @@ -1,4 +1,4 @@ function wallp set -l i (readlink -f $argv) - gsettings set org.gnome.desktop.background picture-uri "file://$i" + gsettings set org.gnome.desktop.background picture-uri "file://$i" end