1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2025-11-27 06:35:43 +00:00

Fish: set up function completion wraps

This commit is contained in:
Phantop 2020-07-21 10:57:35 -04:00
parent 3f2abc1cf8
commit dc3353b717
53 changed files with 42 additions and 68 deletions

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.73stHk/72.fish @ line 1
function 72 function 72
xrandr --newmode (cvt 1920 1080 72 | tail -n1 | cut -d' ' -f2- | tr ' ' \n | awk '$1=$1') xrandr --newmode (cvt 1920 1080 72 | tail -n1 | cut -d' ' -f2- | tr ' ' \n | awk '$1=$1')
xrandr --addmode (xrandr --listactivemonitors | tail -n1 | cut -d' ' -f5- | awk '$1=$1') (cvt 1920 1080 72 | tail -n1 | cut -d' ' -f2) xrandr --addmode (xrandr --listactivemonitors | tail -n1 | cut -d' ' -f5- | awk '$1=$1') (cvt 1920 1080 72 | tail -n1 | cut -d' ' -f2)

View file

@ -1,3 +1,3 @@
function D function D -w cd
cd $D $argv cd $D $argv
end end

View file

@ -1,5 +1,5 @@
# Defined in /tmp/fish.kGwYO8/addpath.fish @ line 1 # Defined in /tmp/fish.kGwYO8/addpath.fish @ line 1
function addpath function addpath -w set
if test $argv if test $argv
set PATH $argv $PATH set PATH $argv $PATH
else else

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.gMuQkV/ao3dl.fish @ line 2
function ao3dl function ao3dl
set dir (sed (math (grep -n '<title>' $argv | cut -d: -f1) + 1)!d $argv | sed -e 's/^[ \t]*//') set dir (sed (math (grep -n '<title>' $argv | cut -d: -f1) + 1)!d $argv | sed -e 's/^[ \t]*//')
mkdir $dir; cd $dir mkdir $dir; cd $dir

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.JkZKD9/awall.fish @ line 2
function awall function awall
if test $argv if test $argv
rm ~/Videos/.wallp rm ~/Videos/.wallp

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.KfrP39/base64d.fish @ line 2
function base64d function base64d
echo (echo $argv | base64 -d 2>/dev/null) echo (echo $argv | base64 -d 2>/dev/null)
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.0UAkY8/build.fish @ line 2
function build function build
s printf '' s printf ''
gp gp

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.cSMIil/caddy.fish @ line 2 function caddy -w python3
function caddy
python3 -m http.server $argv python3 -m http.server $argv
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.yHuNyE/dirdl.fish @ line 2 function dirdl -w wget
function dirdl
wget -r -k -p --no-parent --no-clobber -e robots=off $argv wget -r -k -p --no-parent --no-clobber -e robots=off $argv
end end

View file

@ -1,4 +1,4 @@
function dl function dl -w aria2c
if test $argv if test $argv
aria2c --file-allocation=none -c -x 16 -s 16 $argv aria2c --file-allocation=none -c -x 16 -s 16 $argv
else else

View file

@ -1,3 +1,3 @@
function dot function dot -w cd
cd ~/.dotfiles $argv cd ~/.dotfiles $argv
end end

View file

@ -1,3 +1,3 @@
function fe function fe -w funced
funced $argv funced $argv
end end

View file

@ -1,4 +1,4 @@
function ff function ff -w fd
fd\ fd\
-E sys -E caches -E cache -E .cache -E graphicPacks -E proc -E dosdevices -E .git\ -E sys -E caches -E cache -E .cache -E graphicPacks -E proc -E dosdevices -E .git\
-H -d 5 -L -i $argv -H -d 5 -L -i $argv

View file

@ -1,3 +1,3 @@
function ffd function ffd -w ff
ff -t d $argv ff -t d $argv
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.GyKM24/flacc.fish @ line 1 function flacc -w flac
function flacc
flac -f -8 -V $argv flac -f -8 -V $argv
end end

View file

@ -1,3 +1,3 @@
function fs function fs -w funcsave
funcsave $argv funcsave $argv
end end

View file

@ -1,3 +1,3 @@
function g function g -w git
git $argv git $argv
end end

View file

@ -1,4 +1,4 @@
# Defined in /tmp/fish.zBYqg4/giveme.fish @ line 2 # Defined in /tmp/fish.zBYqg4/giveme.fish @ line 2
function giveme function giveme -w chown
s chown $USER $argv s chown $USER $argv
end end

View file

@ -1,3 +1,3 @@
function hardinfo function hardinfo -w inxi
inxi -SPARM -GCDN -v1 -xGCRS -Fxz $argv inxi -SPARM -GCDN -v1 -xGCRS -Fxz $argv
end end

View file

@ -1,3 +1,3 @@
function l function l -w ls
ls $argv ls $argv
end end

View file

@ -1,3 +1,3 @@
function la function la -w ls
ls -a $argv ls -a $argv
end end

View file

@ -1,3 +1,3 @@
function launcher function launcher -w rofi
rofi -combi-modi "drun,run" -show combi -modi "combi,window" -drun-icon-theme Papirus $argv rofi -combi-modi "drun,run" -show combi -modi "combi,window" -drun-icon-theme Papirus $argv
end end

View file

@ -1,3 +1,3 @@
function less function less -w eval
eval $PAGER $argv eval $PAGER $argv
end end

View file

@ -1,4 +1,3 @@
# Defined in /home/glados/.config/fish/functions/minecraft.fish @ line 2
function minecraft function minecraft
cd $D/Games/Minecraft/Game cd $D/Games/Minecraft/Game
rm (ff -e log) rm (ff -e log)

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.pIfWy2/mpva.fish @ line 2 function mpva -w mpv
function mpva
mpv --no-video $argv mpv --no-video $argv
end end

View file

@ -1,3 +1,3 @@
function murder function murder -w killall
killall $argv -s SIGKILL killall $argv -s SIGKILL
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.Qwgrvr/off.fish @ line 2 function off -w shutdown
function off
sync; shutdown $argv; exit sync; shutdown $argv; exit
end end

View file

@ -1,3 +1,3 @@
function offh function offh -w math
off (math "60*"$argv) off (math "60*"$argv)
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.QZ1PN5/pagedl.fish @ line 2 function pagedl -w wget
function pagedl
wget -H -k -p --no-clobber -e robots=off $argv wget -H -k -p --no-clobber -e robots=off $argv
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.Og3Yo4/podsync.fish @ line 2
function podsync function podsync
cd $D/Videos/YouTube/ cd $D/Videos/YouTube/
./clean ./clean

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.aALkPB/qb.fish @ line 2 function qb -w qutebrowser
function qb
qutebrowser $argv --target auto & disown qutebrowser $argv --target auto & disown
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.QXVsWf/re.fish @ line 2
function re function re
sync; systemctl reboot -i sync; systemctl reboot -i
end end

View file

@ -1,3 +1,3 @@
function s function s -w sudo
sudo $argv sudo $argv
end end

View file

@ -1,3 +1,3 @@
function se function se -w eopkg
s eopkg $argv s eopkg $argv
end end

View file

@ -1,3 +1,3 @@
function seh function seh -w eopkg
s eopkg history $argv s eopkg history $argv
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.ozWZUL/squash.fish @ line 2 function squash -w mksquashfs
function squash mksquashfs . ../(basename (pwd))Squash -comp zstd -b 1M -Xcompression-level 22 $argv
mksquashfs . ../(basename (pwd))Squash -comp zstd -b 1M -Xcompression-level 22
end end

View file

@ -1,3 +1,3 @@
function sumurder function sumurder -w killall
s killall $argv -s SIGKILL s killall $argv -s SIGKILL
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.7kzeFd/supath.fish @ line 1 function supath -w env
function supath
sudo env "PATH=$PATH" $argv sudo env "PATH=$PATH" $argv
end end

View file

@ -1,3 +1,3 @@
function ta function ta -w math
tmux attach -t (math 0 + "0$argv") tmux attach -t (math 0 + "0$argv")
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.E3u1iE/timer.fish @ line 2
function timer function timer
tmux new -s 0 -d 'while true tmux new -s 0 -d 'while true
countdown 20m countdown 20m

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.xDL739/up.fish @ line 2
function up function up
se up --y se up --y
end end

View file

@ -1,3 +1,3 @@
function v function v -w nvim
nvim $argv nvim $argv
end end

View file

@ -1,3 +1,3 @@
function vi function vi -w nvim
nvim $argv nvim $argv
end end

View file

@ -1,3 +1,3 @@
function wallb function wallb -w wallo
wallo $argv -blur 0x8 wallo $argv -blur 0x8
end end

View file

@ -1,4 +1,4 @@
function wallo function wallo -w convert
rm ~/.config/wall0 rm ~/.config/wall0
convert $argv -resize (xrandr | grep '*'| grep -o [0-9]\*x[0-9]\*) ~/.config/wall0 convert $argv -resize (xrandr | grep '*'| grep -o [0-9]\*x[0-9]\*) ~/.config/wall0
end end

View file

@ -1,4 +1,4 @@
function wallp function wallp -w readlink
set -l i (readlink -f $argv) 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 end

View file

@ -1,3 +0,0 @@
function wiimote
sudo modprobe -r hid-wiimote
end

View file

@ -1,3 +1,3 @@
function wm function wm -w startx
startx (which $argv[1]) $argv[2..-1] startx (which $argv[1]) $argv[2..-1]
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.83qvw2/xcompress.fish @ line 2
function xcompress function xcompress
if test -d $argv if test -d $argv
tar -cf $argv.tar $argv tar -cf $argv.tar $argv

View file

@ -1,3 +1,3 @@
function xsquash function xsquash -w mksquashfs
mksquashfs . ../(basename (pwd))Squash -comp xz -b 1M -Xdict-size 1M mksquashfs . ../(basename (pwd))Squash -comp xz -b 1M -Xdict-size 1M $argv
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.Cfc1Xs/ydl.fish @ line 2 function ydl -w youtube-dl
function ydl
youtube-dl --continue --ignore-errors --no-overwrites --write-sub --embed-subs -o '%(title)s.%(ext)s' $argv youtube-dl --continue --ignore-errors --no-overwrites --write-sub --embed-subs -o '%(title)s.%(ext)s' $argv
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.nB8upe/ydl4.fish @ line 2 function ydl4 -w ydl
function ydl4 --description 'alias ydl4 ydl --format mp4'
ydl --format mp4 $argv; ydl --format mp4 $argv;
end end

View file

@ -1,4 +1,3 @@
# Defined in /tmp/fish.PGT46K/zcompress.fish @ line 2
function zcompress function zcompress
if test -d $argv if test -d $argv
tar -cf $argv.tar $argv tar -cf $argv.tar $argv