Its fish time

This commit is contained in:
Thomas Muller 2023-11-25 01:34:13 -05:00
parent aca95cbca8
commit a254d4d32d
24 changed files with 324 additions and 1 deletions

6
.config/.gitignore vendored
View file

@ -3,6 +3,10 @@
# This file
!.gitignore
# .config folder
# nvim folder
!nvim/
!nvim/**
# fish
!fish/
!fish/**

13
.config/fish/config.fish Normal file
View file

@ -0,0 +1,13 @@
if status is-interactive
# Commands to run in interactive sessions can go here
set -gx EDITOR nvim
set -gx VISUAL nvim
set -gx TERMINAL st
if not pgrep -u "$USER" ssh-agent > /dev/null;
ssh-agent -c > "$XDG_RUNTIME_DIR/ssh-agent.env"
end
if [ -z $SSH_AUTH_SOCK ]
eval "$(cat $XDG_RUNTIME_DIR/ssh-agent.env)" > /dev/null
end
end

View file

@ -0,0 +1,33 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:555\x1ebrblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:blue
SETUVAR fish_color_comment:red
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:green
SETUVAR fish_color_error:brred
SETUVAR fish_color_escape:brcyan
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:brcyan
SETUVAR fish_color_param:cyan
SETUVAR fish_color_quote:yellow
SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_greeting:\x1d
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr
SETUVAR fish_user_paths:/home/devnull/\x2elocal/bin

View file

@ -0,0 +1,168 @@
function clean_packages --wraps=sudo\ pacman\ -Rsn\ agg\narcus-debug\narpack\nasciidoc\nautoconf2.13\nbinfmt-qemu-static\ncgal\ncksfv\ncli11\ncoffeescript\ncppunit\ncunit\ncython\ndmraid\ndvisvgm\nelectron24\nfcgi\nflann\nfontforge\ngcab\ngcc-ada\ngendesk\ngiblib\ngn-m85\ngnome-common\ngo\ngperf\ngptfdisk\ngroovy\ngst-plugin-gtk\ngtkmm-4.0\nhaskell-breakpoint\nhaskell-connection\nhaskell-cprng-aes\nhaskell-unbounded-delays\nhaskell-wcwidth\nibus\nirrlicht\njs78\nleveldb\nlib32-celt\nlib32-faudio\nlib32-gst-plugins-good\nlib32-json-glib\nlib32-libidn\nlib32-libnsl\nlib32-libxslt\nlib32-lz4\nlib32-pcre\nlib32-readline\nlib32-rest\nlibart-lgpl\nlibc++\nlibcddb\nlibcmis\nlibcroco\nlibcryptui\nlibffi7\nlibgit2\nlibgweather\nliblzf\nlibofa\nlibrabbitmq-c\nlibrdkafka\nlibtg_owt\nlibvisual\nlibvterm01\nlitehtml\nlockdev\nlog4cpp\nlsp-plugins\nlua53\nmangohud\nmaven\nmed-openmpi\nmeson\nmetis\nmingw-w64-gcc\nmlt6\nmmg\nmono-msbuild\nmozilla-common\nnasm\nopencl-headers\nopencolorio1\nopenjpeg\nopenshadinglanguage\nopenssl-1.0\nperl-gd\nperl-parse-yapp\nprojectm\nproperties-cpp\npygtk\npyside2-tools\npython-anytree\npython-asn1crypto\npython-atomicwrites\npython-beaker\npython-build\npython-cached-property\npython-cherrypy\npython-commonmark\npython-contextlib2\npython-defusedxml\npython-django\npython-docker-pycreds\npython-dockerpty\npython-docopt\npython-elasticsearch\npython-entrypoints\npython-flask-restful\npython-gitpython\npython-google-api-python-client\npython-isodate\npython-mock\npython-nose\npython-nspektr\npython-pdm\npython-pdm-pep517\npython-pecan\npython-pep517\npython-pivy\npython-pkgconfig\npython-progress\npython-prometheus_client\npython-py\npython-pycodestyle\npython-pyjwt\npython-pylint\npython-pytest-cov\npython-pytoml\npython-pyusb\npython-retrying\npython-scikit-learn\npython-setuptools-scm\npython-sip4\npython-sphinx\npython-tenacity\npython-texttable\npython-xmlsec\npython2-gobject\nqbs\nqt5-imageformats\nqt5-webkit\nrabbitmq\nrapidjson\nrttr\nrun-parts\nscdoc\nsip4\nsparsehash\nsqlcipher\nsyntax-highlighting5\ntexlive-basic\ntinycompress\nvala\nweston\nxine-lib\nxmlstarlet\nxmlto\nxorg-font-utils\nyarn\nyasm\nzita-alsa-pcmi\nzita-resampler --description alias\ clean_packages=sudo\ pacman\ -Rsn\ agg\narcus-debug\narpack\nasciidoc\nautoconf2.13\nbinfmt-qemu-static\ncgal\ncksfv\ncli11\ncoffeescript\ncppunit\ncunit\ncython\ndmraid\ndvisvgm\nelectron24\nfcgi\nflann\nfontforge\ngcab\ngcc-ada\ngendesk\ngiblib\ngn-m85\ngnome-common\ngo\ngperf\ngptfdisk\ngroovy\ngst-plugin-gtk\ngtkmm-4.0\nhaskell-breakpoint\nhaskell-connection\nhaskell-cprng-aes\nhaskell-unbounded-delays\nhaskell-wcwidth\nibus\nirrlicht\njs78\nleveldb\nlib32-celt\nlib32-faudio\nlib32-gst-plugins-good\nlib32-json-glib\nlib32-libidn\nlib32-libnsl\nlib32-libxslt\nlib32-lz4\nlib32-pcre\nlib32-readline\nlib32-rest\nlibart-lgpl\nlibc++\nlibcddb\nlibcmis\nlibcroco\nlibcryptui\nlibffi7\nlibgit2\nlibgweather\nliblzf\nlibofa\nlibrabbitmq-c\nlibrdkafka\nlibtg_owt\nlibvisual\nlibvterm01\nlitehtml\nlockdev\nlog4cpp\nlsp-plugins\nlua53\nmangohud\nmaven\nmed-openmpi\nmeson\nmetis\nmingw-w64-gcc\nmlt6\nmmg\nmono-msbuild\nmozilla-common\nnasm\nopencl-headers\nopencolorio1\nopenjpeg\nopenshadinglanguage\nopenssl-1.0\nperl-gd\nperl-parse-yapp\nprojectm\nproperties-cpp\npygtk\npyside2-tools\npython-anytree\npython-asn1crypto\npython-atomicwrites\npython-beaker\npython-build\npython-cached-property\npython-cherrypy\npython-commonmark\npython-contextlib2\npython-defusedxml\npython-django\npython-docker-pycreds\npython-dockerpty\npython-docopt\npython-elasticsearch\npython-entrypoints\npython-flask-restful\npython-gitpython\npython-google-api-python-client\npython-isodate\npython-mock\npython-nose\npython-nspektr\npython-pdm\npython-pdm-pep517\npython-pecan\npython-pep517\npython-pivy\npython-pkgconfig\npython-progress\npython-prometheus_client\npython-py\npython-pycodestyle\npython-pyjwt\npython-pylint\npython-pytest-cov\npython-pytoml\npython-pyusb\npython-retrying\npython-scikit-learn\npython-setuptools-scm\npython-sip4\npython-sphinx\npython-tenacity\npython-texttable\npython-xmlsec\npython2-gobject\nqbs\nqt5-imageformats\nqt5-webkit\nrabbitmq\nrapidjson\nrttr\nrun-parts\nscdoc\nsip4\nsparsehash\nsqlcipher\nsyntax-highlighting5\ntexlive-basic\ntinycompress\nvala\nweston\nxine-lib\nxmlstarlet\nxmlto\nxorg-font-utils\nyarn\nyasm\nzita-alsa-pcmi\nzita-resampler
sudo pacman -Rsn agg
arcus-debug
arpack
asciidoc
autoconf2.13
binfmt-qemu-static
cgal
cksfv
cli11
coffeescript
cppunit
cunit
cython
dmraid
dvisvgm
electron24
fcgi
flann
fontforge
gcab
gcc-ada
gendesk
giblib
gn-m85
gnome-common
go
gperf
gptfdisk
groovy
gst-plugin-gtk
gtkmm-4.0
haskell-breakpoint
haskell-connection
haskell-cprng-aes
haskell-unbounded-delays
haskell-wcwidth
ibus
irrlicht
js78
leveldb
lib32-celt
lib32-faudio
lib32-gst-plugins-good
lib32-json-glib
lib32-libidn
lib32-libnsl
lib32-libxslt
lib32-lz4
lib32-pcre
lib32-readline
lib32-rest
libart-lgpl
libc++
libcddb
libcmis
libcroco
libcryptui
libffi7
libgit2
libgweather
liblzf
libofa
librabbitmq-c
librdkafka
libtg_owt
libvisual
libvterm01
litehtml
lockdev
log4cpp
lsp-plugins
lua53
mangohud
maven
med-openmpi
meson
metis
mingw-w64-gcc
mlt6
mmg
mono-msbuild
mozilla-common
nasm
opencl-headers
opencolorio1
openjpeg
openshadinglanguage
openssl-1.0
perl-gd
perl-parse-yapp
projectm
properties-cpp
pygtk
pyside2-tools
python-anytree
python-asn1crypto
python-atomicwrites
python-beaker
python-build
python-cached-property
python-cherrypy
python-commonmark
python-contextlib2
python-defusedxml
python-django
python-docker-pycreds
python-dockerpty
python-docopt
python-elasticsearch
python-entrypoints
python-flask-restful
python-gitpython
python-google-api-python-client
python-isodate
python-mock
python-nose
python-nspektr
python-pdm
python-pdm-pep517
python-pecan
python-pep517
python-pivy
python-pkgconfig
python-progress
python-prometheus_client
python-py
python-pycodestyle
python-pyjwt
python-pylint
python-pytest-cov
python-pytoml
python-pyusb
python-retrying
python-scikit-learn
python-setuptools-scm
python-sip4
python-sphinx
python-tenacity
python-texttable
python-xmlsec
python2-gobject
qbs
qt5-imageformats
qt5-webkit
rabbitmq
rapidjson
rttr
run-parts
scdoc
sip4
sparsehash
sqlcipher
syntax-highlighting5
texlive-basic
tinycompress
vala
weston
xine-lib
xmlstarlet
xmlto
xorg-font-utils
yarn
yasm
zita-alsa-pcmi
zita-resampler $argv
end

View file

@ -0,0 +1,4 @@
function creationdate --wraps=stat\ -c\ \'\%w\' --description alias\ creationdate=stat\ -c\ \'\%w\'
stat -c '%w' $argv
end

View file

@ -0,0 +1,4 @@
function diff --description 'alias diff=diff --color=auto'
command diff --color=auto $argv
end

View file

@ -0,0 +1,30 @@
function noname
if set -q SSH_CONNECTION
echo -sn (whoami)'@'(hostname)' '
else
echo ''
end
end
function dirname
echo (basename (pwd | sed "s|^$HOME|~|"))
end
function git_but_good
set_color red
echo -n (fish_vcs_prompt) | sed "s| (master)||"
set_color normal
end
function fish_prompt
set -l last_status $status
if test $last_status -ne 0
set status_color (set_color $fish_color_error)
set prompt_status $status_color "[" $last_status "]" (set_color normal)
end
set_color white
echo -sn '['(noname)(dirname)(git_but_good)']' $prompt_status '$ '
set_color normal
end

View file

@ -0,0 +1,4 @@
function fixdirectories --wraps=find\ .\ -type\ d\ -exec\ chmod\ 755\ \{\}\ \\\; --description alias\ fixdirectories=find\ .\ -type\ d\ -exec\ chmod\ 755\ \{\}\ \\\;
find . -type d -exec chmod 755 {} \; $argv
end

View file

@ -0,0 +1,4 @@
function fixfiles --wraps=find\ .\ -type\ f\ -exec\ chmod\ 644\ \{\}\ \\\; --description alias\ fixfiles=find\ .\ -type\ f\ -exec\ chmod\ 644\ \{\}\ \\\;
find . -type f -exec chmod 644 {} \; $argv
end

View file

@ -0,0 +1,4 @@
function grep --description 'alias grep=grep --color=auto'
command grep --color=auto $argv
end

View file

@ -0,0 +1,4 @@
function ls --description 'alias ls=ls --color=auto --group-directories-first'
command ls --color=auto --group-directories-first $argv
end

View file

@ -0,0 +1,4 @@
function make --description 'alias make=make -j16'
command make -j16 $argv
end

View file

@ -0,0 +1,4 @@
function qmv --description 'alias qmv=qmv -f do'
command qmv -f do $argv
end

View file

@ -0,0 +1,4 @@
function radar --wraps='wget https://www.weather.gov/images/mlb/88d/KMLB_radar_loop.gif -O- | mpv --no-osc --loop=yes -' --description 'alias radar=wget https://www.weather.gov/images/mlb/88d/KMLB_radar_loop.gif -O- | mpv --no-osc --loop=yes -'
wget https://www.weather.gov/images/mlb/88d/KMLB_radar_loop.gif -O- | mpv --no-osc --loop=yes - $argv
end

View file

@ -0,0 +1,4 @@
function reload_wallpaper --wraps='xwallpaper --stretch .config/wallpaper.png' --description 'alias reload_wallpaper=xwallpaper --stretch .config/wallpaper.png'
xwallpaper --stretch .config/wallpaper.png $argv
end

View file

@ -0,0 +1,4 @@
function rm --description 'alias rm=rm -I'
command rm -I $argv
end

View file

@ -0,0 +1,4 @@
function sl --description 'alias sl=sl | lolcat'
command sl | lolcat $argv
end

View file

@ -0,0 +1,3 @@
function spawn
nohup $argv >/dev/null 2>&1 </dev/null &
end

View file

@ -0,0 +1,4 @@
function stealyt --wraps=yt-dlp\ \"\$\(xclip\ -o\ \|\ sed\ \'s/\\\&.\*\$//\'\)\" --description alias\ stealyt\ yt-dlp\ \"\$\(xclip\ -o\ \|\ sed\ \'s/\\\&.\*\$//\'\)\"
yt-dlp "$(xclip -o | sed 's/\&.*$//')" $argv
end

View file

@ -0,0 +1,4 @@
function stealyt=yt-dlp --wraps='https://www.youtube.com/watch?v=aMrzxf7QsQs' --description 'alias stealyt=yt-dlp https://www.youtube.com/watch?v=aMrzxf7QsQs'
https://www.youtube.com/watch?v=aMrzxf7QsQs $argv
end

View file

@ -0,0 +1,4 @@
function t --wraps='spawn st' --description 'alias t=spawn st'
spawn st $argv
end

View file

@ -0,0 +1,4 @@
function thonkstream --wraps='ffmpeg -i thonksphere.gif -r 200 -filter_complex loop=loop=-1:size=200 -pix_fmt yuv420p -f v4l2 -s 1920x1080 /dev/video50' --description 'alias thonkstream=ffmpeg -i thonksphere.gif -r 200 -filter_complex loop=loop=-1:size=200 -pix_fmt yuv420p -f v4l2 -s 1920x1080 /dev/video50'
ffmpeg -i thonksphere.gif -r 200 -filter_complex loop=loop=-1:size=200 -pix_fmt yuv420p -f v4l2 -s 1920x1080 /dev/video50 $argv
end

View file

@ -0,0 +1,4 @@
function vim --wraps=nvim --description 'alias vim=nvim'
nvim $argv
end

View file

@ -0,0 +1,4 @@
function weather --wraps='curl wttr.in' --description 'alias weather=curl wttr.in'
curl wttr.in $argv
end