diff --git a/.config/.gitignore b/.config/.gitignore index e4d69c1..b0cd91b 100644 --- a/.config/.gitignore +++ b/.config/.gitignore @@ -3,6 +3,10 @@ # This file !.gitignore -# .config folder +# nvim folder !nvim/ !nvim/** + +# fish +!fish/ +!fish/** diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..8f11219 --- /dev/null +++ b/.config/fish/config.fish @@ -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 diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables new file mode 100644 index 0000000..47610a1 --- /dev/null +++ b/.config/fish/fish_variables @@ -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 diff --git a/.config/fish/functions/clean_packages.fish b/.config/fish/functions/clean_packages.fish new file mode 100644 index 0000000..5ca36a8 --- /dev/null +++ b/.config/fish/functions/clean_packages.fish @@ -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 diff --git a/.config/fish/functions/creationdate.fish b/.config/fish/functions/creationdate.fish new file mode 100644 index 0000000..536bff4 --- /dev/null +++ b/.config/fish/functions/creationdate.fish @@ -0,0 +1,4 @@ +function creationdate --wraps=stat\ -c\ \'\%w\' --description alias\ creationdate=stat\ -c\ \'\%w\' + stat -c '%w' $argv + +end diff --git a/.config/fish/functions/diff.fish b/.config/fish/functions/diff.fish new file mode 100644 index 0000000..a6c4499 --- /dev/null +++ b/.config/fish/functions/diff.fish @@ -0,0 +1,4 @@ +function diff --description 'alias diff=diff --color=auto' + command diff --color=auto $argv + +end diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..81a1cd1 --- /dev/null +++ b/.config/fish/functions/fish_prompt.fish @@ -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 diff --git a/.config/fish/functions/fixdirectories.fish b/.config/fish/functions/fixdirectories.fish new file mode 100644 index 0000000..8d458b2 --- /dev/null +++ b/.config/fish/functions/fixdirectories.fish @@ -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 diff --git a/.config/fish/functions/fixfiles.fish b/.config/fish/functions/fixfiles.fish new file mode 100644 index 0000000..54f7db3 --- /dev/null +++ b/.config/fish/functions/fixfiles.fish @@ -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 diff --git a/.config/fish/functions/grep.fish b/.config/fish/functions/grep.fish new file mode 100644 index 0000000..a732509 --- /dev/null +++ b/.config/fish/functions/grep.fish @@ -0,0 +1,4 @@ +function grep --description 'alias grep=grep --color=auto' + command grep --color=auto $argv + +end diff --git a/.config/fish/functions/ls.fish b/.config/fish/functions/ls.fish new file mode 100644 index 0000000..5b8aad5 --- /dev/null +++ b/.config/fish/functions/ls.fish @@ -0,0 +1,4 @@ +function ls --description 'alias ls=ls --color=auto --group-directories-first' + command ls --color=auto --group-directories-first $argv + +end diff --git a/.config/fish/functions/make.fish b/.config/fish/functions/make.fish new file mode 100644 index 0000000..31fc325 --- /dev/null +++ b/.config/fish/functions/make.fish @@ -0,0 +1,4 @@ +function make --description 'alias make=make -j16' + command make -j16 $argv + +end diff --git a/.config/fish/functions/qmv.fish b/.config/fish/functions/qmv.fish new file mode 100644 index 0000000..876e8c4 --- /dev/null +++ b/.config/fish/functions/qmv.fish @@ -0,0 +1,4 @@ +function qmv --description 'alias qmv=qmv -f do' + command qmv -f do $argv + +end diff --git a/.config/fish/functions/radar.fish b/.config/fish/functions/radar.fish new file mode 100644 index 0000000..463c162 --- /dev/null +++ b/.config/fish/functions/radar.fish @@ -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 diff --git a/.config/fish/functions/reload_wallpaper.fish b/.config/fish/functions/reload_wallpaper.fish new file mode 100644 index 0000000..58bf6e2 --- /dev/null +++ b/.config/fish/functions/reload_wallpaper.fish @@ -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 diff --git a/.config/fish/functions/rm.fish b/.config/fish/functions/rm.fish new file mode 100644 index 0000000..bfc892f --- /dev/null +++ b/.config/fish/functions/rm.fish @@ -0,0 +1,4 @@ +function rm --description 'alias rm=rm -I' + command rm -I $argv + +end diff --git a/.config/fish/functions/sl.fish b/.config/fish/functions/sl.fish new file mode 100644 index 0000000..1906029 --- /dev/null +++ b/.config/fish/functions/sl.fish @@ -0,0 +1,4 @@ +function sl --description 'alias sl=sl | lolcat' + command sl | lolcat $argv + +end diff --git a/.config/fish/functions/spawn.fish b/.config/fish/functions/spawn.fish new file mode 100644 index 0000000..0a71b24 --- /dev/null +++ b/.config/fish/functions/spawn.fish @@ -0,0 +1,3 @@ +function spawn + nohup $argv >/dev/null 2>&1