From 4306ed076e0f4874a26138b1360b05ec1fc0004b Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Mon, 23 Jan 2023 23:35:37 +0100 Subject: [PATCH] added some cool stuff --- README.md | 3 +- desktop-config.sh | 29 + home/.local/share/nnn/plugins/.cbcp | 0 home/.local/share/nnn/plugins/.iconlookup | 0 home/.local/share/nnn/plugins/.nmv | 0 home/.local/share/nnn/plugins/.ntfy | 0 home/.local/share/nnn/plugins/autojump | 0 home/.local/share/nnn/plugins/boom | 0 home/.local/share/nnn/plugins/bulknew | 0 home/.local/share/nnn/plugins/cdpath | 0 home/.local/share/nnn/plugins/chksum | 0 home/.local/share/nnn/plugins/cmusq | 0 home/.local/share/nnn/plugins/diffs | 0 home/.local/share/nnn/plugins/dragdrop | 0 home/.local/share/nnn/plugins/dups | 0 home/.local/share/nnn/plugins/finder | 0 home/.local/share/nnn/plugins/fixname | 0 home/.local/share/nnn/plugins/fzcd | 0 home/.local/share/nnn/plugins/fzhist | 0 home/.local/share/nnn/plugins/fzopen | 0 home/.local/share/nnn/plugins/fzplug | 0 home/.local/share/nnn/plugins/getplugs | 0 home/.local/share/nnn/plugins/gitroot | 0 home/.local/share/nnn/plugins/gpgd | 0 home/.local/share/nnn/plugins/gpge | 0 home/.local/share/nnn/plugins/gsconnect | 0 home/.local/share/nnn/plugins/gutenread | 0 home/.local/share/nnn/plugins/imgresize | 0 home/.local/share/nnn/plugins/imgur | 0 home/.local/share/nnn/plugins/imgview | 0 home/.local/share/nnn/plugins/ipinfo | 0 home/.local/share/nnn/plugins/kdeconnect | 0 home/.local/share/nnn/plugins/launch | 0 home/.local/share/nnn/plugins/mimelist | 0 home/.local/share/nnn/plugins/moclyrics | 0 home/.local/share/nnn/plugins/mocq | 0 home/.local/share/nnn/plugins/mp3conv | 0 home/.local/share/nnn/plugins/mtpmount | 0 home/.local/share/nnn/plugins/nbak | 0 home/.local/share/nnn/plugins/nmount | 0 home/.local/share/nnn/plugins/nuke | 0 home/.local/share/nnn/plugins/oldbigfile | 0 home/.local/share/nnn/plugins/openall | 0 home/.local/share/nnn/plugins/organize | 0 home/.local/share/nnn/plugins/pdfread | 0 home/.local/share/nnn/plugins/preview-tabbed | 0 home/.local/share/nnn/plugins/preview-tui | 0 home/.local/share/nnn/plugins/pskill | 0 home/.local/share/nnn/plugins/renamer | 0 home/.local/share/nnn/plugins/ringtone | 0 home/.local/share/nnn/plugins/rsynccp | 0 home/.local/share/nnn/plugins/splitjoin | 0 home/.local/share/nnn/plugins/suedit | 0 home/.local/share/nnn/plugins/togglex | 0 home/.local/share/nnn/plugins/umounttree | 0 home/.local/share/nnn/plugins/upload | 0 home/.local/share/nnn/plugins/wallpaper | 0 home/.local/share/nnn/plugins/x2sel | 0 home/.local/share/nnn/plugins/xdgdefault | 0 .../zsh-autosuggestions/install_test_zsh.sh | 0 .../fast-syntax-highlighting/test/parse.zsh | 0 .../zsh-autosuggestions/install_test_zsh.sh | 0 .../.zsh/themes/powerlevel10k/gitstatus/build | 0 .../themes/powerlevel10k/gitstatus/install | 0 .../themes/powerlevel10k/gitstatus/mbuild | 0 home/.zsh/themes/spaceship-prompt/async | 670 +++++++++++++++++- .../themes/spaceship-prompt/lib/cache.zsh | 0 home/.zsh/themes/spaceship-prompt/lib/cli.zsh | 0 .../themes/spaceship-prompt/lib/config.zsh | 0 .../.zsh/themes/spaceship-prompt/lib/core.zsh | 0 .../themes/spaceship-prompt/lib/hooks.zsh | 0 .../themes/spaceship-prompt/lib/prompts.zsh | 0 .../themes/spaceship-prompt/lib/section.zsh | 0 .../themes/spaceship-prompt/lib/testkit.zsh | 0 .../themes/spaceship-prompt/lib/utils.zsh | 0 .../themes/spaceship-prompt/lib/worker.zsh | 0 .../spaceship-prompt/prompt_spaceship_setup | 213 +++++- .../themes/spaceship-prompt/scripts/install | 0 .../themes/spaceship-prompt/scripts/tests | 0 .../themes/spaceship-prompt/scripts/uninstall | 0 .../themes/spaceship-prompt/sections/char.zsh | 0 .../spaceship-prompt/spaceship.zsh-theme | 213 +++++- .../spaceship-prompt/tests/ansible.test.zsh | 0 .../spaceship-prompt/tests/bun.test.zsh | 0 .../spaceship-prompt/tests/cache.test.zsh | 0 .../spaceship-prompt/tests/char.test.zsh | 0 .../spaceship-prompt/tests/crystal.test.zsh | 0 .../spaceship-prompt/tests/dart.test.zsh | 0 .../spaceship-prompt/tests/deno.test.zsh | 0 .../spaceship-prompt/tests/dir.test.zsh | 0 .../tests/docker_compose.test.zsh | 0 .../spaceship-prompt/tests/elm.test.zsh | 0 .../tests/gnu_screen.test.zsh | 0 .../spaceship-prompt/tests/hooks.test.zsh | 0 .../spaceship-prompt/tests/host.test.zsh | 0 .../spaceship-prompt/tests/lua.test.zsh | 0 .../spaceship-prompt/tests/nix_shell.test.zsh | 0 .../spaceship-prompt/tests/ocaml.test.zsh | 0 .../spaceship-prompt/tests/perl.test.zsh | 0 .../spaceship-prompt/tests/scala.test.zsh | 0 .../spaceship-prompt/tests/section.test.zsh | 0 .../spaceship-prompt/tests/stubs/ansible | 0 .../themes/spaceship-prompt/tests/stubs/bun | 0 .../spaceship-prompt/tests/stubs/crystal | 0 .../themes/spaceship-prompt/tests/stubs/dart | 0 .../themes/spaceship-prompt/tests/stubs/deno | 0 .../tests/stubs/docker-compose | 0 .../themes/spaceship-prompt/tests/stubs/elm | 0 .../themes/spaceship-prompt/tests/stubs/lua | 0 .../themes/spaceship-prompt/tests/stubs/ocaml | 0 .../themes/spaceship-prompt/tests/stubs/perl | 0 .../spaceship-prompt/tests/stubs/scalac | 0 .../themes/spaceship-prompt/tests/stubs/v | 0 .../spaceship-prompt/tests/user.test.zsh | 0 .../spaceship-prompt/tests/utils.test.zsh | 0 .../spaceship-prompt/tests/vlang.test.zsh | 0 home/.zsh/zshrc | 7 +- 117 files changed, 1128 insertions(+), 7 deletions(-) mode change 100755 => 100644 home/.local/share/nnn/plugins/.cbcp mode change 100755 => 100644 home/.local/share/nnn/plugins/.iconlookup mode change 100755 => 100644 home/.local/share/nnn/plugins/.nmv mode change 100755 => 100644 home/.local/share/nnn/plugins/.ntfy mode change 100755 => 100644 home/.local/share/nnn/plugins/autojump mode change 100755 => 100644 home/.local/share/nnn/plugins/boom mode change 100755 => 100644 home/.local/share/nnn/plugins/bulknew mode change 100755 => 100644 home/.local/share/nnn/plugins/cdpath mode change 100755 => 100644 home/.local/share/nnn/plugins/chksum mode change 100755 => 100644 home/.local/share/nnn/plugins/cmusq mode change 100755 => 100644 home/.local/share/nnn/plugins/diffs mode change 100755 => 100644 home/.local/share/nnn/plugins/dragdrop mode change 100755 => 100644 home/.local/share/nnn/plugins/dups mode change 100755 => 100644 home/.local/share/nnn/plugins/finder mode change 100755 => 100644 home/.local/share/nnn/plugins/fixname mode change 100755 => 100644 home/.local/share/nnn/plugins/fzcd mode change 100755 => 100644 home/.local/share/nnn/plugins/fzhist mode change 100755 => 100644 home/.local/share/nnn/plugins/fzopen mode change 100755 => 100644 home/.local/share/nnn/plugins/fzplug mode change 100755 => 100644 home/.local/share/nnn/plugins/getplugs mode change 100755 => 100644 home/.local/share/nnn/plugins/gitroot mode change 100755 => 100644 home/.local/share/nnn/plugins/gpgd mode change 100755 => 100644 home/.local/share/nnn/plugins/gpge mode change 100755 => 100644 home/.local/share/nnn/plugins/gsconnect mode change 100755 => 100644 home/.local/share/nnn/plugins/gutenread mode change 100755 => 100644 home/.local/share/nnn/plugins/imgresize mode change 100755 => 100644 home/.local/share/nnn/plugins/imgur mode change 100755 => 100644 home/.local/share/nnn/plugins/imgview mode change 100755 => 100644 home/.local/share/nnn/plugins/ipinfo mode change 100755 => 100644 home/.local/share/nnn/plugins/kdeconnect mode change 100755 => 100644 home/.local/share/nnn/plugins/launch mode change 100755 => 100644 home/.local/share/nnn/plugins/mimelist mode change 100755 => 100644 home/.local/share/nnn/plugins/moclyrics mode change 100755 => 100644 home/.local/share/nnn/plugins/mocq mode change 100755 => 100644 home/.local/share/nnn/plugins/mp3conv mode change 100755 => 100644 home/.local/share/nnn/plugins/mtpmount mode change 100755 => 100644 home/.local/share/nnn/plugins/nbak mode change 100755 => 100644 home/.local/share/nnn/plugins/nmount mode change 100755 => 100644 home/.local/share/nnn/plugins/nuke mode change 100755 => 100644 home/.local/share/nnn/plugins/oldbigfile mode change 100755 => 100644 home/.local/share/nnn/plugins/openall mode change 100755 => 100644 home/.local/share/nnn/plugins/organize mode change 100755 => 100644 home/.local/share/nnn/plugins/pdfread mode change 100755 => 100644 home/.local/share/nnn/plugins/preview-tabbed mode change 100755 => 100644 home/.local/share/nnn/plugins/preview-tui mode change 100755 => 100644 home/.local/share/nnn/plugins/pskill mode change 100755 => 100644 home/.local/share/nnn/plugins/renamer mode change 100755 => 100644 home/.local/share/nnn/plugins/ringtone mode change 100755 => 100644 home/.local/share/nnn/plugins/rsynccp mode change 100755 => 100644 home/.local/share/nnn/plugins/splitjoin mode change 100755 => 100644 home/.local/share/nnn/plugins/suedit mode change 100755 => 100644 home/.local/share/nnn/plugins/togglex mode change 100755 => 100644 home/.local/share/nnn/plugins/umounttree mode change 100755 => 100644 home/.local/share/nnn/plugins/upload mode change 100755 => 100644 home/.local/share/nnn/plugins/wallpaper mode change 100755 => 100644 home/.local/share/nnn/plugins/x2sel mode change 100755 => 100644 home/.local/share/nnn/plugins/xdgdefault mode change 100755 => 100644 home/.zsh-server/plugins/zsh-autosuggestions/install_test_zsh.sh mode change 100755 => 100644 home/.zsh/plugins/fast-syntax-highlighting/test/parse.zsh mode change 100755 => 100644 home/.zsh/plugins/zsh-autosuggestions/install_test_zsh.sh mode change 100755 => 100644 home/.zsh/themes/powerlevel10k/gitstatus/build mode change 100755 => 100644 home/.zsh/themes/powerlevel10k/gitstatus/install mode change 100755 => 100644 home/.zsh/themes/powerlevel10k/gitstatus/mbuild mode change 120000 => 100644 home/.zsh/themes/spaceship-prompt/async mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/lib/cache.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/lib/cli.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/lib/config.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/lib/core.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/lib/hooks.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/lib/prompts.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/lib/section.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/lib/testkit.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/lib/utils.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/lib/worker.zsh mode change 120000 => 100644 home/.zsh/themes/spaceship-prompt/prompt_spaceship_setup mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/scripts/install mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/scripts/tests mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/scripts/uninstall mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/sections/char.zsh mode change 120000 => 100644 home/.zsh/themes/spaceship-prompt/spaceship.zsh-theme mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/ansible.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/bun.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/cache.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/char.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/crystal.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/dart.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/deno.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/dir.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/docker_compose.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/elm.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/gnu_screen.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/hooks.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/host.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/lua.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/nix_shell.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/ocaml.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/perl.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/scala.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/section.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/stubs/ansible mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/stubs/bun mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/stubs/crystal mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/stubs/dart mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/stubs/deno mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/stubs/docker-compose mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/stubs/elm mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/stubs/lua mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/stubs/ocaml mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/stubs/perl mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/stubs/scalac mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/stubs/v mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/user.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/utils.test.zsh mode change 100755 => 100644 home/.zsh/themes/spaceship-prompt/tests/vlang.test.zsh diff --git a/README.md b/README.md index d3c288d..8b61823 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # configs + some config files i use for my systems. you need to install fzf for some zsh stuff -you also need vim plugged for vim plugins +you also need vim plugged for vim plugins \ No newline at end of file diff --git a/desktop-config.sh b/desktop-config.sh index 7db1cb8..4d8e592 100644 --- a/desktop-config.sh +++ b/desktop-config.sh @@ -21,3 +21,32 @@ ln ~/.zsh/zshrc ~/.zshrc #cp -r $(pwd)/etc/* /etc #cp -r $(pwd)/usr/* /usr + +# Install Vim Stuff +curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim +sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' + + +sudo bash -c 'rm ~/.zsh-very-old' +sudo bash -c 'mv ~/.zsh-old ~/.zsh-very-old' +sudo bash -c 'mv ~/.zsh ~/.zsh-old' + +sudo bash -c 'rm ~/.zshrc-very-old' +sudo bash -c 'mv ~/.zshrc-old ~/.zshrc-very-old' +sudo bash -c 'mv ~/.zshrc ~/.zshrc-old' + +sudo bash -c 'cp -r $(pwd)/home/.gitconfig ~' +sudo bash -c 'cp -r $(pwd)/home/.p10k.zsh ~' +sudo bash -c 'cp -r $(pwd)/home/.zsh ~' +sudo bash -c 'cp -r $(pwd)/home/.vimrc ~' +sudo bash -c 'cp -r $(pwd)/home/.local ~' +sudo bash -c 'cp -r $(pwd)/home/.config ~' +sudo bash -c 'cp -r $(pwd)/home/.tmux.conf ~' + +sudo bash -c 'ln ~/.zsh/zshrc ~/.zshrc' + +# Install Vim Stuff +sudo sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' diff --git a/home/.local/share/nnn/plugins/.cbcp b/home/.local/share/nnn/plugins/.cbcp old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/.iconlookup b/home/.local/share/nnn/plugins/.iconlookup old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/.nmv b/home/.local/share/nnn/plugins/.nmv old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/.ntfy b/home/.local/share/nnn/plugins/.ntfy old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/autojump b/home/.local/share/nnn/plugins/autojump old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/boom b/home/.local/share/nnn/plugins/boom old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/bulknew b/home/.local/share/nnn/plugins/bulknew old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/cdpath b/home/.local/share/nnn/plugins/cdpath old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/chksum b/home/.local/share/nnn/plugins/chksum old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/cmusq b/home/.local/share/nnn/plugins/cmusq old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/diffs b/home/.local/share/nnn/plugins/diffs old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/dragdrop b/home/.local/share/nnn/plugins/dragdrop old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/dups b/home/.local/share/nnn/plugins/dups old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/finder b/home/.local/share/nnn/plugins/finder old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/fixname b/home/.local/share/nnn/plugins/fixname old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/fzcd b/home/.local/share/nnn/plugins/fzcd old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/fzhist b/home/.local/share/nnn/plugins/fzhist old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/fzopen b/home/.local/share/nnn/plugins/fzopen old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/fzplug b/home/.local/share/nnn/plugins/fzplug old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/getplugs b/home/.local/share/nnn/plugins/getplugs old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/gitroot b/home/.local/share/nnn/plugins/gitroot old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/gpgd b/home/.local/share/nnn/plugins/gpgd old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/gpge b/home/.local/share/nnn/plugins/gpge old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/gsconnect b/home/.local/share/nnn/plugins/gsconnect old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/gutenread b/home/.local/share/nnn/plugins/gutenread old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/imgresize b/home/.local/share/nnn/plugins/imgresize old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/imgur b/home/.local/share/nnn/plugins/imgur old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/imgview b/home/.local/share/nnn/plugins/imgview old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/ipinfo b/home/.local/share/nnn/plugins/ipinfo old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/kdeconnect b/home/.local/share/nnn/plugins/kdeconnect old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/launch b/home/.local/share/nnn/plugins/launch old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/mimelist b/home/.local/share/nnn/plugins/mimelist old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/moclyrics b/home/.local/share/nnn/plugins/moclyrics old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/mocq b/home/.local/share/nnn/plugins/mocq old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/mp3conv b/home/.local/share/nnn/plugins/mp3conv old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/mtpmount b/home/.local/share/nnn/plugins/mtpmount old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/nbak b/home/.local/share/nnn/plugins/nbak old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/nmount b/home/.local/share/nnn/plugins/nmount old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/nuke b/home/.local/share/nnn/plugins/nuke old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/oldbigfile b/home/.local/share/nnn/plugins/oldbigfile old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/openall b/home/.local/share/nnn/plugins/openall old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/organize b/home/.local/share/nnn/plugins/organize old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/pdfread b/home/.local/share/nnn/plugins/pdfread old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/preview-tabbed b/home/.local/share/nnn/plugins/preview-tabbed old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/preview-tui b/home/.local/share/nnn/plugins/preview-tui old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/pskill b/home/.local/share/nnn/plugins/pskill old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/renamer b/home/.local/share/nnn/plugins/renamer old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/ringtone b/home/.local/share/nnn/plugins/ringtone old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/rsynccp b/home/.local/share/nnn/plugins/rsynccp old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/splitjoin b/home/.local/share/nnn/plugins/splitjoin old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/suedit b/home/.local/share/nnn/plugins/suedit old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/togglex b/home/.local/share/nnn/plugins/togglex old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/umounttree b/home/.local/share/nnn/plugins/umounttree old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/upload b/home/.local/share/nnn/plugins/upload old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/wallpaper b/home/.local/share/nnn/plugins/wallpaper old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/x2sel b/home/.local/share/nnn/plugins/x2sel old mode 100755 new mode 100644 diff --git a/home/.local/share/nnn/plugins/xdgdefault b/home/.local/share/nnn/plugins/xdgdefault old mode 100755 new mode 100644 diff --git a/home/.zsh-server/plugins/zsh-autosuggestions/install_test_zsh.sh b/home/.zsh-server/plugins/zsh-autosuggestions/install_test_zsh.sh old mode 100755 new mode 100644 diff --git a/home/.zsh/plugins/fast-syntax-highlighting/test/parse.zsh b/home/.zsh/plugins/fast-syntax-highlighting/test/parse.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/plugins/zsh-autosuggestions/install_test_zsh.sh b/home/.zsh/plugins/zsh-autosuggestions/install_test_zsh.sh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/powerlevel10k/gitstatus/build b/home/.zsh/themes/powerlevel10k/gitstatus/build old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/powerlevel10k/gitstatus/install b/home/.zsh/themes/powerlevel10k/gitstatus/install old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/powerlevel10k/gitstatus/mbuild b/home/.zsh/themes/powerlevel10k/gitstatus/mbuild old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/async b/home/.zsh/themes/spaceship-prompt/async deleted file mode 120000 index 27d2d7e..0000000 --- a/home/.zsh/themes/spaceship-prompt/async +++ /dev/null @@ -1 +0,0 @@ -async.zsh \ No newline at end of file diff --git a/home/.zsh/themes/spaceship-prompt/async b/home/.zsh/themes/spaceship-prompt/async new file mode 100644 index 0000000..1a73d08 --- /dev/null +++ b/home/.zsh/themes/spaceship-prompt/async @@ -0,0 +1,669 @@ +#!/usr/bin/env zsh + +# +# zsh-async +# +# version: v1.8.5 +# author: Mathias Fredriksson +# url: https://github.com/mafredri/zsh-async +# + +typeset -g ASYNC_VERSION=1.8.5 +# Produce debug output from zsh-async when set to 1. +typeset -g ASYNC_DEBUG=${ASYNC_DEBUG:-0} + +# Execute commands that can manipulate the environment inside the async worker. Return output via callback. +_async_eval() { + local ASYNC_JOB_NAME + # Rename job to _async_eval and redirect all eval output to cat running + # in _async_job. Here, stdout and stderr are not separated for + # simplicity, this could be improved in the future. + { + eval "$@" + } &> >(ASYNC_JOB_NAME=[async/eval] _async_job 'cat') +} + +# Wrapper for jobs executed by the async worker, gives output in parseable format with execution time +_async_job() { + # Disable xtrace as it would mangle the output. + setopt localoptions noxtrace + + # Store start time for job. + float -F duration=$EPOCHREALTIME + + # Run the command and capture both stdout (`eval`) and stderr (`cat`) in + # separate subshells. When the command is complete, we grab write lock + # (mutex token) and output everything except stderr inside the command + # block, after the command block has completed, the stdin for `cat` is + # closed, causing stderr to be appended with a $'\0' at the end to mark the + # end of output from this job. + local jobname=${ASYNC_JOB_NAME:-$1} out + out="$( + local stdout stderr ret tok + { + stdout=$(eval "$@") + ret=$? + duration=$(( EPOCHREALTIME - duration )) # Calculate duration. + + print -r -n - $'\0'${(q)jobname} $ret ${(q)stdout} $duration + } 2> >(stderr=$(cat) && print -r -n - " "${(q)stderr}$'\0') + )" + if [[ $out != $'\0'*$'\0' ]]; then + # Corrupted output (aborted job?), skipping. + return + fi + + # Grab mutex lock, stalls until token is available. + read -r -k 1 -p tok || return 1 + + # Return output ( ). + print -r -n - "$out" + + # Unlock mutex by inserting a token. + print -n -p $tok +} + +# The background worker manages all tasks and runs them without interfering with other processes +_async_worker() { + # Reset all options to defaults inside async worker. + emulate -R zsh + + # Make sure monitor is unset to avoid printing the + # pids of child processes. + unsetopt monitor + + # Redirect stderr to `/dev/null` in case unforseen errors produced by the + # worker. For example: `fork failed: resource temporarily unavailable`. + # Some older versions of zsh might also print malloc errors (know to happen + # on at least zsh 5.0.2 and 5.0.8) likely due to kill signals. + exec 2>/dev/null + + # When a zpty is deleted (using -d) all the zpty instances created before + # the one being deleted receive a SIGHUP, unless we catch it, the async + # worker would simply exit (stop working) even though visible in the list + # of zpty's (zpty -L). This has been fixed around the time of Zsh 5.4 + # (not released). + if ! is-at-least 5.4.1; then + TRAPHUP() { + return 0 # Return 0, indicating signal was handled. + } + fi + + local -A storage + local unique=0 + local notify_parent=0 + local parent_pid=0 + local coproc_pid=0 + local processing=0 + + local -a zsh_hooks zsh_hook_functions + zsh_hooks=(chpwd periodic precmd preexec zshexit zshaddhistory) + zsh_hook_functions=(${^zsh_hooks}_functions) + unfunction $zsh_hooks &>/dev/null # Deactivate all zsh hooks inside the worker. + unset $zsh_hook_functions # And hooks with registered functions. + unset zsh_hooks zsh_hook_functions # Cleanup. + + close_idle_coproc() { + local -a pids + pids=(${${(v)jobstates##*:*:}%\=*}) + + # If coproc (cat) is the only child running, we close it to avoid + # leaving it running indefinitely and cluttering the process tree. + if (( ! processing )) && [[ $#pids = 1 ]] && [[ $coproc_pid = $pids[1] ]]; then + coproc : + coproc_pid=0 + fi + } + + child_exit() { + close_idle_coproc + + # On older version of zsh (pre 5.2) we notify the parent through a + # SIGWINCH signal because `zpty` did not return a file descriptor (fd) + # prior to that. + if (( notify_parent )); then + # We use SIGWINCH for compatibility with older versions of zsh + # (pre 5.1.1) where other signals (INFO, ALRM, USR1, etc.) could + # cause a deadlock in the shell under certain circumstances. + kill -WINCH $parent_pid + fi + } + + # Register a SIGCHLD trap to handle the completion of child processes. + trap child_exit CHLD + + # Process option parameters passed to worker. + while getopts "np:uz" opt; do + case $opt in + n) notify_parent=1;; + p) parent_pid=$OPTARG;; + u) unique=1;; + z) notify_parent=0;; # Uses ZLE watcher instead. + esac + done + + # Terminate all running jobs, note that this function does not + # reinstall the child trap. + terminate_jobs() { + trap - CHLD # Ignore child exits during kill. + coproc : # Quit coproc. + coproc_pid=0 # Reset pid. + + if is-at-least 5.4.1; then + trap '' HUP # Catch the HUP sent to this process. + kill -HUP -$$ # Send to entire process group. + trap - HUP # Disable HUP trap. + else + # We already handle HUP for Zsh < 5.4.1. + kill -HUP -$$ # Send to entire process group. + fi + } + + killjobs() { + local tok + local -a pids + pids=(${${(v)jobstates##*:*:}%\=*}) + + # No need to send SIGHUP if no jobs are running. + (( $#pids == 0 )) && continue + (( $#pids == 1 )) && [[ $coproc_pid = $pids[1] ]] && continue + + # Grab lock to prevent half-written output in case a child + # process is in the middle of writing to stdin during kill. + (( coproc_pid )) && read -r -k 1 -p tok + + terminate_jobs + trap child_exit CHLD # Reinstall child trap. + } + + local request do_eval=0 + local -a cmd + while :; do + # Wait for jobs sent by async_job. + read -r -d $'\0' request || { + # Unknown error occurred while reading from stdin, the zpty + # worker is likely in a broken state, so we shut down. + terminate_jobs + + # Stdin is broken and in case this was an unintended + # crash, we try to report it as a last hurrah. + print -r -n $'\0'"'[async]'" $(( 127 + 3 )) "''" 0 "'$0:$LINENO: zpty fd died, exiting'"$'\0' + + # We use `return` to abort here because using `exit` may + # result in an infinite loop that never exits and, as a + # result, high CPU utilization. + return $(( 127 + 1 )) + } + + # We need to clean the input here because sometimes when a zpty + # has died and been respawned, messages will be prefixed with a + # carraige return (\r, or \C-M). + request=${request#$'\C-M'} + + # Check for non-job commands sent to worker + case $request in + _killjobs) killjobs; continue;; + _async_eval*) do_eval=1;; + esac + + # Parse the request using shell parsing (z) to allow commands + # to be parsed from single strings and multi-args alike. + cmd=("${(z)request}") + + # Name of the job (first argument). + local job=$cmd[1] + + # Check if a worker should perform unique jobs, unless + # this is an eval since they run synchronously. + if (( !do_eval )) && (( unique )); then + # Check if a previous job is still running, if yes, + # skip this job and let the previous one finish. + for pid in ${${(v)jobstates##*:*:}%\=*}; do + if [[ ${storage[$job]} == $pid ]]; then + continue 2 + fi + done + fi + + # Guard against closing coproc from trap before command has started. + processing=1 + + # Because we close the coproc after the last job has completed, we must + # recreate it when there are no other jobs running. + if (( ! coproc_pid )); then + # Use coproc as a mutex for synchronized output between children. + coproc cat + coproc_pid="$!" + # Insert token into coproc + print -n -p "t" + fi + + if (( do_eval )); then + shift cmd # Strip _async_eval from cmd. + _async_eval $cmd + else + # Run job in background, completed jobs are printed to stdout. + _async_job $cmd & + # Store pid because zsh job manager is extremely unflexible (show jobname as non-unique '$job')... + storage[$job]="$!" + fi + + processing=0 # Disable guard. + + if (( do_eval )); then + do_eval=0 + + # When there are no active jobs we can't rely on the CHLD trap to + # manage the coproc lifetime. + close_idle_coproc + fi + done +} + +# +# Get results from finished jobs and pass it to the to callback function. This is the only way to reliably return the +# job name, return code, output and execution time and with minimal effort. +# +# If the async process buffer becomes corrupt, the callback will be invoked with the first argument being `[async]` (job +# name), non-zero return code and fifth argument describing the error (stderr). +# +# usage: +# async_process_results +# +# callback_function is called with the following parameters: +# $1 = job name, e.g. the function passed to async_job +# $2 = return code +# $3 = resulting stdout from execution +# $4 = execution time, floating point e.g. 2.05 seconds +# $5 = resulting stderr from execution +# $6 = has next result in buffer (0 = buffer empty, 1 = yes) +# +async_process_results() { + setopt localoptions unset noshwordsplit noksharrays noposixidentifiers noposixstrings + + local worker=$1 + local callback=$2 + local caller=$3 + local -a items + local null=$'\0' data + integer -l len pos num_processed has_next + + typeset -gA ASYNC_PROCESS_BUFFER + + # Read output from zpty and parse it if available. + while zpty -r -t $worker data 2>/dev/null; do + ASYNC_PROCESS_BUFFER[$worker]+=$data + len=${#ASYNC_PROCESS_BUFFER[$worker]} + pos=${ASYNC_PROCESS_BUFFER[$worker][(i)$null]} # Get index of NULL-character (delimiter). + + # Keep going until we find a NULL-character. + if (( ! len )) || (( pos > len )); then + continue + fi + + while (( pos <= len )); do + # Take the content from the beginning, until the NULL-character and + # perform shell parsing (z) and unquoting (Q) as an array (@). + items=("${(@Q)${(z)ASYNC_PROCESS_BUFFER[$worker][1,$pos-1]}}") + + # Remove the extracted items from the buffer. + ASYNC_PROCESS_BUFFER[$worker]=${ASYNC_PROCESS_BUFFER[$worker][$pos+1,$len]} + + len=${#ASYNC_PROCESS_BUFFER[$worker]} + if (( len > 1 )); then + pos=${ASYNC_PROCESS_BUFFER[$worker][(i)$null]} # Get index of NULL-character (delimiter). + fi + + has_next=$(( len != 0 )) + if (( $#items == 5 )); then + items+=($has_next) + $callback "${(@)items}" # Send all parsed items to the callback. + (( num_processed++ )) + elif [[ -z $items ]]; then + # Empty items occur between results due to double-null ($'\0\0') + # caused by commands being both pre and suffixed with null. + else + # In case of corrupt data, invoke callback with *async* as job + # name, non-zero exit status and an error message on stderr. + $callback "[async]" 1 "" 0 "$0:$LINENO: error: bad format, got ${#items} items (${(q)items})" $has_next + fi + done + done + + (( num_processed )) && return 0 + + # Avoid printing exit value when `setopt printexitvalue` is active.` + [[ $caller = trap || $caller = watcher ]] && return 0 + + # No results were processed + return 1 +} + +# Watch worker for output +_async_zle_watcher() { + setopt localoptions noshwordsplit + typeset -gA ASYNC_PTYS ASYNC_CALLBACKS + local worker=$ASYNC_PTYS[$1] + local callback=$ASYNC_CALLBACKS[$worker] + + if [[ -n $2 ]]; then + # from man zshzle(1): + # `hup' for a disconnect, `nval' for a closed or otherwise + # invalid descriptor, or `err' for any other condition. + # Systems that support only the `select' system call always use + # `err'. + + # this has the side effect to unregister the broken file descriptor + async_stop_worker $worker + + if [[ -n $callback ]]; then + $callback '[async]' 2 "" 0 "$0:$LINENO: error: fd for $worker failed: zle -F $1 returned error $2" 0 + fi + return + fi; + + if [[ -n $callback ]]; then + async_process_results $worker $callback watcher + fi +} + +_async_send_job() { + setopt localoptions noshwordsplit noksharrays noposixidentifiers noposixstrings + + local caller=$1 + local worker=$2 + shift 2 + + zpty -t $worker &>/dev/null || { + typeset -gA ASYNC_CALLBACKS + local callback=$ASYNC_CALLBACKS[$worker] + + if [[ -n $callback ]]; then + $callback '[async]' 3 "" 0 "$0:$LINENO: error: no such worker: $worker" 0 + else + print -u2 "$caller: no such async worker: $worker" + fi + return 1 + } + + zpty -w $worker "$@"$'\0' +} + +# +# Start a new asynchronous job on specified worker, assumes the worker is running. +# +# usage: +# async_job [] +# +async_job() { + setopt localoptions noshwordsplit noksharrays noposixidentifiers noposixstrings + + local worker=$1; shift + + local -a cmd + cmd=("$@") + if (( $#cmd > 1 )); then + cmd=(${(q)cmd}) # Quote special characters in multi argument commands. + fi + + _async_send_job $0 $worker "$cmd" +} + +# +# Evaluate a command (like async_job) inside the async worker, then worker environment can be manipulated. For example, +# issuing a cd command will change the PWD of the worker which will then be inherited by all future async jobs. +# +# Output will be returned via callback, job name will be [async/eval]. +# +# usage: +# async_worker_eval [] +# +async_worker_eval() { + setopt localoptions noshwordsplit noksharrays noposixidentifiers noposixstrings + + local worker=$1; shift + + local -a cmd + cmd=("$@") + if (( $#cmd > 1 )); then + cmd=(${(q)cmd}) # Quote special characters in multi argument commands. + fi + + # Quote the cmd in case RC_EXPAND_PARAM is set. + _async_send_job $0 $worker "_async_eval $cmd" +} + +# This function traps notification signals and calls all registered callbacks +_async_notify_trap() { + setopt localoptions noshwordsplit + + local k + for k in ${(k)ASYNC_CALLBACKS}; do + async_process_results $k ${ASYNC_CALLBACKS[$k]} trap + done +} + +# +# Register a callback for completed jobs. As soon as a job is finnished, async_process_results will be called with the +# specified callback function. This requires that a worker is initialized with the -n (notify) option. +# +# usage: +# async_register_callback +# +async_register_callback() { + setopt localoptions noshwordsplit nolocaltraps + + typeset -gA ASYNC_PTYS ASYNC_CALLBACKS + local worker=$1; shift + + ASYNC_CALLBACKS[$worker]="$*" + + # Enable trap when the ZLE watcher is unavailable, allows + # workers to notify (via -n) when a job is done. + if [[ ! -o interactive ]] || [[ ! -o zle ]]; then + trap '_async_notify_trap' WINCH + elif [[ -o interactive ]] && [[ -o zle ]]; then + local fd w + for fd w in ${(@kv)ASYNC_PTYS}; do + if [[ $w == $worker ]]; then + zle -F $fd _async_zle_watcher # Register the ZLE handler. + break + fi + done + fi +} + +# +# Unregister the callback for a specific worker. +# +# usage: +# async_unregister_callback +# +async_unregister_callback() { + typeset -gA ASYNC_CALLBACKS + + unset "ASYNC_CALLBACKS[$1]" +} + +# +# Flush all current jobs running on a worker. This will terminate any and all running processes under the worker, use +# with caution. +# +# usage: +# async_flush_jobs +# +async_flush_jobs() { + setopt localoptions noshwordsplit + + local worker=$1; shift + + # Check if the worker exists + zpty -t $worker &>/dev/null || return 1 + + # Send kill command to worker + async_job $worker "_killjobs" + + # Clear the zpty buffer. + local junk + if zpty -r -t $worker junk '*'; then + (( ASYNC_DEBUG )) && print -n "async_flush_jobs $worker: ${(V)junk}" + while zpty -r -t $worker junk '*'; do + (( ASYNC_DEBUG )) && print -n "${(V)junk}" + done + (( ASYNC_DEBUG )) && print + fi + + # Finally, clear the process buffer in case of partially parsed responses. + typeset -gA ASYNC_PROCESS_BUFFER + unset "ASYNC_PROCESS_BUFFER[$worker]" +} + +# +# Start a new async worker with optional parameters, a worker can be told to only run unique tasks and to notify a +# process when tasks are complete. +# +# usage: +# async_start_worker [-u] [-n] [-p ] +# +# opts: +# -u unique (only unique job names can run) +# -n notify through SIGWINCH signal +# -p pid to notify (defaults to current pid) +# +async_start_worker() { + setopt localoptions noshwordsplit noclobber + + local worker=$1; shift + local -a args + args=("$@") + zpty -t $worker &>/dev/null && return + + typeset -gA ASYNC_PTYS + typeset -h REPLY + typeset has_xtrace=0 + + if [[ -o interactive ]] && [[ -o zle ]]; then + # Inform the worker to ignore the notify flag and that we're + # using a ZLE watcher instead. + args+=(-z) + + if (( ! ASYNC_ZPTY_RETURNS_FD )); then + # When zpty doesn't return a file descriptor (on older versions of zsh) + # we try to guess it anyway. + integer -l zptyfd + exec {zptyfd}>&1 # Open a new file descriptor (above 10). + exec {zptyfd}>&- # Close it so it's free to be used by zpty. + fi + fi + + # Workaround for stderr in the main shell sometimes (incorrectly) being + # reassigned to /dev/null by the reassignment done inside the async + # worker. + # See https://github.com/mafredri/zsh-async/issues/35. + integer errfd=-1 + + # Redirect of errfd is broken on zsh 5.0.2. + if is-at-least 5.0.8; then + exec {errfd}>&2 + fi + + # Make sure async worker is started without xtrace + # (the trace output interferes with the worker). + [[ -o xtrace ]] && { + has_xtrace=1 + unsetopt xtrace + } + + if (( errfd != -1 )); then + zpty -b $worker _async_worker -p $$ $args 2>&$errfd + else + zpty -b $worker _async_worker -p $$ $args + fi + local ret=$? + + # Re-enable it if it was enabled, for debugging. + (( has_xtrace )) && setopt xtrace + (( errfd != -1 )) && exec {errfd}>& - + + if (( ret )); then + async_stop_worker $worker + return 1 + fi + + if ! is-at-least 5.0.8; then + # For ZSH versions older than 5.0.8 we delay a bit to give + # time for the worker to start before issuing commands, + # otherwise it will not be ready to receive them. + sleep 0.001 + fi + + if [[ -o interactive ]] && [[ -o zle ]]; then + if (( ! ASYNC_ZPTY_RETURNS_FD )); then + REPLY=$zptyfd # Use the guessed value for the file desciptor. + fi + + ASYNC_PTYS[$REPLY]=$worker # Map the file desciptor to the worker. + fi +} + +# +# Stop one or multiple workers that are running, all unfetched and incomplete work will be lost. +# +# usage: +# async_stop_worker [] +# +async_stop_worker() { + setopt localoptions noshwordsplit + + local ret=0 worker k v + for worker in $@; do + # Find and unregister the zle handler for the worker + for k v in ${(@kv)ASYNC_PTYS}; do + if [[ $v == $worker ]]; then + zle -F $k + unset "ASYNC_PTYS[$k]" + fi + done + async_unregister_callback $worker + zpty -d $worker 2>/dev/null || ret=$? + + # Clear any partial buffers. + typeset -gA ASYNC_PROCESS_BUFFER + unset "ASYNC_PROCESS_BUFFER[$worker]" + done + + return $ret +} + +# +# Initialize the required modules for zsh-async. To be called before using the zsh-async library. +# +# usage: +# async_init +# +async_init() { + (( ASYNC_INIT_DONE )) && return + typeset -g ASYNC_INIT_DONE=1 + + zmodload zsh/zpty + zmodload zsh/datetime + + # Load is-at-least for reliable version check. + autoload -Uz is-at-least + + # Check if zsh/zpty returns a file descriptor or not, + # shell must also be interactive with zle enabled. + typeset -g ASYNC_ZPTY_RETURNS_FD=0 + [[ -o interactive ]] && [[ -o zle ]] && { + typeset -h REPLY + zpty _async_test : + (( REPLY )) && ASYNC_ZPTY_RETURNS_FD=1 + zpty -d _async_test + } +} + +async() { + async_init +} + +async "$@" diff --git a/home/.zsh/themes/spaceship-prompt/lib/cache.zsh b/home/.zsh/themes/spaceship-prompt/lib/cache.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/lib/cli.zsh b/home/.zsh/themes/spaceship-prompt/lib/cli.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/lib/config.zsh b/home/.zsh/themes/spaceship-prompt/lib/config.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/lib/core.zsh b/home/.zsh/themes/spaceship-prompt/lib/core.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/lib/hooks.zsh b/home/.zsh/themes/spaceship-prompt/lib/hooks.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/lib/prompts.zsh b/home/.zsh/themes/spaceship-prompt/lib/prompts.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/lib/section.zsh b/home/.zsh/themes/spaceship-prompt/lib/section.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/lib/testkit.zsh b/home/.zsh/themes/spaceship-prompt/lib/testkit.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/lib/utils.zsh b/home/.zsh/themes/spaceship-prompt/lib/utils.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/lib/worker.zsh b/home/.zsh/themes/spaceship-prompt/lib/worker.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/prompt_spaceship_setup b/home/.zsh/themes/spaceship-prompt/prompt_spaceship_setup deleted file mode 120000 index 529572a..0000000 --- a/home/.zsh/themes/spaceship-prompt/prompt_spaceship_setup +++ /dev/null @@ -1 +0,0 @@ -spaceship.zsh \ No newline at end of file diff --git a/home/.zsh/themes/spaceship-prompt/prompt_spaceship_setup b/home/.zsh/themes/spaceship-prompt/prompt_spaceship_setup new file mode 100644 index 0000000..35a7b5c --- /dev/null +++ b/home/.zsh/themes/spaceship-prompt/prompt_spaceship_setup @@ -0,0 +1,212 @@ +#!/usr/bin/env zsh +# +# Spaceship ZSH +# +# Author: Denys Dovhan, denysdovhan.com +# License: MIT +# https://github.com/spaceship-prompt/spaceship-prompt + +# Current version of Spaceship +# Useful for issue reporting +export SPACESHIP_VERSION='4.10.1' + +# Set SPACESHIP_ROOT if it isn't defined yet or if the directory does +# not exist anymore (e.g. after an update to a newer version) +# See https://github.com/spaceship-prompt/spaceship-prompt/pull/1280 +if [[ -z "$SPACESHIP_ROOT" || ! -d "$SPACESHIP_ROOT" ]]; then + # Determination of Spaceship working directory + # https://git.io/vdBH7 + if [[ "${(%):-%N}" == '(eval)' ]]; then + if [[ "$0" == '-antigen-load' ]] && [[ -r "${PWD}/spaceship.zsh" ]]; then + # Antigen uses eval to load things so it can change the plugin (!!) + # https://github.com/zsh-users/antigen/issues/581 + export -r SPACESHIP_ROOT="$PWD" + else + print -P "%F{red}You must set SPACESHIP_ROOT to work from within an (eval).%f" + return 1 + fi + else + # Get the path to file this code is executing in; then + # get the absolute path and strip the filename. + # See https://stackoverflow.com/a/28336473/108857 + export -r SPACESHIP_ROOT="${${(%):-%x}:A:h}" + fi +fi + +# ------------------------------------------------------------------------------ +# CONFIGURATION +# The default configuration that can be overridden in .zshrc +# ------------------------------------------------------------------------------ + +if [ -z "$SPACESHIP_PROMPT_ORDER" ]; then + SPACESHIP_PROMPT_ORDER=( + time # Time stamps section + user # Username section + dir # Current directory section + host # Hostname section + git # Git section (git_branch + git_status) + hg # Mercurial section (hg_branch + hg_status) + package # Package version + node # Node.js section + bun # Bun section + deno # Deno section + ruby # Ruby section + python # Python section + elm # Elm section + elixir # Elixir section + xcode # Xcode section + swift # Swift section + golang # Go section + perl # Perl section + php # PHP section + rust # Rust section + haskell # Haskell Stack section + scala # Scala section + java # Java section + lua # Lua section + dart # Dart section + julia # Julia section + crystal # Crystal section + docker # Docker section + docker_compose # Docker section + aws # Amazon Web Services section + gcloud # Google Cloud Platform section + venv # virtualenv section + conda # conda virtualenv section + dotnet # .NET section + ocaml # OCaml section + vlang # V section + kubectl # Kubectl context section + ansible # Ansible section + terraform # Terraform workspace section + pulumi # Pulumi stack section + ibmcloud # IBM Cloud section + nix_shell # Nix shell + gnu_screen # GNU Screen section + exec_time # Execution time + async # Async jobs indicator + line_sep # Line break + battery # Battery level and status + jobs # Background jobs indicator + exit_code # Exit code section + sudo # Sudo indicator + char # Prompt character + ) +fi + +if [ -z "$SPACESHIP_RPROMPT_ORDER" ]; then + SPACESHIP_RPROMPT_ORDER=( + # empty by default + ) +fi + +# PROMPT OPTIONS +SPACESHIP_PROMPT_ASYNC="${SPACESHIP_PROMPT_ASYNC=true}" +SPACESHIP_PROMPT_ADD_NEWLINE="${SPACESHIP_PROMPT_ADD_NEWLINE=true}" +SPACESHIP_PROMPT_SEPARATE_LINE="${SPACESHIP_PROMPT_SEPARATE_LINE=true}" +SPACESHIP_PROMPT_FIRST_PREFIX_SHOW="${SPACESHIP_PROMPT_FIRST_PREFIX_SHOW=false}" +SPACESHIP_PROMPT_PREFIXES_SHOW="${SPACESHIP_PROMPT_PREFIXES_SHOW=true}" +SPACESHIP_PROMPT_SUFFIXES_SHOW="${SPACESHIP_PROMPT_SUFFIXES_SHOW=true}" +SPACESHIP_PROMPT_DEFAULT_PREFIX="${SPACESHIP_PROMPT_DEFAULT_PREFIX="via "}" +SPACESHIP_PROMPT_DEFAULT_SUFFIX="${SPACESHIP_PROMPT_DEFAULT_SUFFIX=" "}" + +# ------------------------------------------------------------------------------ +# LIBS +# Spaceship utils/hooks/etc +# ------------------------------------------------------------------------------ + +SPACESHIP_LIBS=( + "lib/utils.zsh" # General porpuse utils + "lib/cache.zsh" # Cache utils + "lib/worker.zsh" # Async worker + "lib/hooks.zsh" # Zsh hooks + "lib/section.zsh" # Section utils + "lib/core.zsh" # Core functions for loading and rendering + "lib/prompts.zsh" # Composing prompt variables + "lib/cli.zsh" # CLI interface + "lib/config.zsh" # Loading Spaceship configuration file + "lib/testkit.zsh" # Testing utils +) + +# Load and precompile internals +for lib in "${SPACESHIP_LIBS[@]}"; do + builtin source "$SPACESHIP_ROOT/$lib" + spaceship::precompile "$SPACESHIP_ROOT/$lib" +done + +# Load and precompile this file +spaceship::precompile "$SPACESHIP_ROOT/$0" + +# ------------------------------------------------------------------------------ +# BACKWARD COMPATIBILITY WARNINGS +# Show deprecation messages for options that are set, but not supported +# ------------------------------------------------------------------------------ + +# pyenv to python deprecation warnings +spaceship::deprecated SPACESHIP_PYENV_SHOW "Use %BSPACESHIP_PYTHON_SHOW%b instead" +spaceship::deprecated SPACESHIP_PYENV_PREFIX "Use %BSPACESHIP_PYTHON_PREFIX%b instead" +spaceship::deprecated SPACESHIP_PYENV_SUFFIX "Use %BSPACESHIP_PYTHON_SUFFIX%b instead" +spaceship::deprecated SPACESHIP_PYENV_SYMBOL "Use %BSPACESHIP_PYTHON_SYMBOL%b instead" +spaceship::deprecated SPACESHIP_PYENV_COLOR "Use %bSPACESHIP_PYTHON_COLOR%b instead" + +# kubectl_context warnings +spaceship::deprecated SPACESHIP_KUBECONTEXT_SHOW "Use %BSPACESHIP_KUBECTL_CONTEXT_SHOW%b instead" +spaceship::deprecated SPACESHIP_KUBECONTEXT_PREFIX "Use %BSPACESHIP_KUBECTL_CONTEXT_PREFIX%b instead" +spaceship::deprecated SPACESHIP_KUBECONTEXT_SUFFIX "Use %BSPACESHIP_KUBECTL_CONTEXT_SUFFIX%b instead" +spaceship::deprecated SPACESHIP_KUBECONTEXT_COLOR "Use %BSPACESHIP_KUBECTL_CONTEXT_COLOR%b instead" +spaceship::deprecated SPACESHIP_KUBECONTEXT_NAMESPACE_SHOW "Use %BSPACESHIP_KUBECTL_CONTEXT_SHOW_NAMESPACE%b instead" +spaceship::deprecated SPACESHIP_KUBECONTEXT_COLOR_GROUPS "Use %BSPACESHIP_KUBECTL_CONTEXT_COLOR_GROUPS%b instead" + +# ------------------------------------------------------------------------------ +# SETUP +# Setup requirements for prompt +# ------------------------------------------------------------------------------ + +# Runs once when user opens a terminal +# All preparation before drawing prompt should be done here +prompt_spaceship_setup() { + autoload -Uz vcs_info + autoload -Uz add-zsh-hook + autoload -Uz add-zsh-hook + autoload -Uz is-at-least + + if ! is-at-least 5.2; then + print -P "%Bspaceship-prompt%b requires at least %Bzsh v5.2%b (you have %Bv$ZSH_VERSION%b)." + print -P "Please upgrade your zsh installation." + fi + + # This variable is a magic variable used when loading themes with zsh's prompt + # function. It will ensure the proper prompt options are set. + prompt_opts=(cr percent sp subst) + + # Borrowed from promptinit, sets the prompt options in case the prompt was not + # initialized via promptinit. + setopt noprompt{bang,cr,percent,subst} "prompt${^prompt_opts[@]}" + + # Initialize builtin functions + zmodload zsh/datetime + zmodload zsh/mathfunc + + # Add hooks + add-zsh-hook preexec prompt_spaceship_preexec + add-zsh-hook precmd prompt_spaceship_precmd + add-zsh-hook chpwd prompt_spaceship_chpwd + + # Disable python virtualenv environment prompt prefix + VIRTUAL_ENV_DISABLE_PROMPT=true + + # Configure vcs_info helper for potential use in the future + zstyle ':vcs_info:*' enable git + zstyle ':vcs_info:git*' formats '%b' + + # Load sections before rendering + spaceship::core::load_sections +} + +# ------------------------------------------------------------------------------ +# ENTRY POINT +# An entry point of prompt +# ------------------------------------------------------------------------------ + +# Pass all arguments to the spaceship_setup function +prompt_spaceship_setup "$@" diff --git a/home/.zsh/themes/spaceship-prompt/scripts/install b/home/.zsh/themes/spaceship-prompt/scripts/install old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/scripts/tests b/home/.zsh/themes/spaceship-prompt/scripts/tests old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/scripts/uninstall b/home/.zsh/themes/spaceship-prompt/scripts/uninstall old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/sections/char.zsh b/home/.zsh/themes/spaceship-prompt/sections/char.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/spaceship.zsh-theme b/home/.zsh/themes/spaceship-prompt/spaceship.zsh-theme deleted file mode 120000 index 529572a..0000000 --- a/home/.zsh/themes/spaceship-prompt/spaceship.zsh-theme +++ /dev/null @@ -1 +0,0 @@ -spaceship.zsh \ No newline at end of file diff --git a/home/.zsh/themes/spaceship-prompt/spaceship.zsh-theme b/home/.zsh/themes/spaceship-prompt/spaceship.zsh-theme new file mode 100644 index 0000000..35a7b5c --- /dev/null +++ b/home/.zsh/themes/spaceship-prompt/spaceship.zsh-theme @@ -0,0 +1,212 @@ +#!/usr/bin/env zsh +# +# Spaceship ZSH +# +# Author: Denys Dovhan, denysdovhan.com +# License: MIT +# https://github.com/spaceship-prompt/spaceship-prompt + +# Current version of Spaceship +# Useful for issue reporting +export SPACESHIP_VERSION='4.10.1' + +# Set SPACESHIP_ROOT if it isn't defined yet or if the directory does +# not exist anymore (e.g. after an update to a newer version) +# See https://github.com/spaceship-prompt/spaceship-prompt/pull/1280 +if [[ -z "$SPACESHIP_ROOT" || ! -d "$SPACESHIP_ROOT" ]]; then + # Determination of Spaceship working directory + # https://git.io/vdBH7 + if [[ "${(%):-%N}" == '(eval)' ]]; then + if [[ "$0" == '-antigen-load' ]] && [[ -r "${PWD}/spaceship.zsh" ]]; then + # Antigen uses eval to load things so it can change the plugin (!!) + # https://github.com/zsh-users/antigen/issues/581 + export -r SPACESHIP_ROOT="$PWD" + else + print -P "%F{red}You must set SPACESHIP_ROOT to work from within an (eval).%f" + return 1 + fi + else + # Get the path to file this code is executing in; then + # get the absolute path and strip the filename. + # See https://stackoverflow.com/a/28336473/108857 + export -r SPACESHIP_ROOT="${${(%):-%x}:A:h}" + fi +fi + +# ------------------------------------------------------------------------------ +# CONFIGURATION +# The default configuration that can be overridden in .zshrc +# ------------------------------------------------------------------------------ + +if [ -z "$SPACESHIP_PROMPT_ORDER" ]; then + SPACESHIP_PROMPT_ORDER=( + time # Time stamps section + user # Username section + dir # Current directory section + host # Hostname section + git # Git section (git_branch + git_status) + hg # Mercurial section (hg_branch + hg_status) + package # Package version + node # Node.js section + bun # Bun section + deno # Deno section + ruby # Ruby section + python # Python section + elm # Elm section + elixir # Elixir section + xcode # Xcode section + swift # Swift section + golang # Go section + perl # Perl section + php # PHP section + rust # Rust section + haskell # Haskell Stack section + scala # Scala section + java # Java section + lua # Lua section + dart # Dart section + julia # Julia section + crystal # Crystal section + docker # Docker section + docker_compose # Docker section + aws # Amazon Web Services section + gcloud # Google Cloud Platform section + venv # virtualenv section + conda # conda virtualenv section + dotnet # .NET section + ocaml # OCaml section + vlang # V section + kubectl # Kubectl context section + ansible # Ansible section + terraform # Terraform workspace section + pulumi # Pulumi stack section + ibmcloud # IBM Cloud section + nix_shell # Nix shell + gnu_screen # GNU Screen section + exec_time # Execution time + async # Async jobs indicator + line_sep # Line break + battery # Battery level and status + jobs # Background jobs indicator + exit_code # Exit code section + sudo # Sudo indicator + char # Prompt character + ) +fi + +if [ -z "$SPACESHIP_RPROMPT_ORDER" ]; then + SPACESHIP_RPROMPT_ORDER=( + # empty by default + ) +fi + +# PROMPT OPTIONS +SPACESHIP_PROMPT_ASYNC="${SPACESHIP_PROMPT_ASYNC=true}" +SPACESHIP_PROMPT_ADD_NEWLINE="${SPACESHIP_PROMPT_ADD_NEWLINE=true}" +SPACESHIP_PROMPT_SEPARATE_LINE="${SPACESHIP_PROMPT_SEPARATE_LINE=true}" +SPACESHIP_PROMPT_FIRST_PREFIX_SHOW="${SPACESHIP_PROMPT_FIRST_PREFIX_SHOW=false}" +SPACESHIP_PROMPT_PREFIXES_SHOW="${SPACESHIP_PROMPT_PREFIXES_SHOW=true}" +SPACESHIP_PROMPT_SUFFIXES_SHOW="${SPACESHIP_PROMPT_SUFFIXES_SHOW=true}" +SPACESHIP_PROMPT_DEFAULT_PREFIX="${SPACESHIP_PROMPT_DEFAULT_PREFIX="via "}" +SPACESHIP_PROMPT_DEFAULT_SUFFIX="${SPACESHIP_PROMPT_DEFAULT_SUFFIX=" "}" + +# ------------------------------------------------------------------------------ +# LIBS +# Spaceship utils/hooks/etc +# ------------------------------------------------------------------------------ + +SPACESHIP_LIBS=( + "lib/utils.zsh" # General porpuse utils + "lib/cache.zsh" # Cache utils + "lib/worker.zsh" # Async worker + "lib/hooks.zsh" # Zsh hooks + "lib/section.zsh" # Section utils + "lib/core.zsh" # Core functions for loading and rendering + "lib/prompts.zsh" # Composing prompt variables + "lib/cli.zsh" # CLI interface + "lib/config.zsh" # Loading Spaceship configuration file + "lib/testkit.zsh" # Testing utils +) + +# Load and precompile internals +for lib in "${SPACESHIP_LIBS[@]}"; do + builtin source "$SPACESHIP_ROOT/$lib" + spaceship::precompile "$SPACESHIP_ROOT/$lib" +done + +# Load and precompile this file +spaceship::precompile "$SPACESHIP_ROOT/$0" + +# ------------------------------------------------------------------------------ +# BACKWARD COMPATIBILITY WARNINGS +# Show deprecation messages for options that are set, but not supported +# ------------------------------------------------------------------------------ + +# pyenv to python deprecation warnings +spaceship::deprecated SPACESHIP_PYENV_SHOW "Use %BSPACESHIP_PYTHON_SHOW%b instead" +spaceship::deprecated SPACESHIP_PYENV_PREFIX "Use %BSPACESHIP_PYTHON_PREFIX%b instead" +spaceship::deprecated SPACESHIP_PYENV_SUFFIX "Use %BSPACESHIP_PYTHON_SUFFIX%b instead" +spaceship::deprecated SPACESHIP_PYENV_SYMBOL "Use %BSPACESHIP_PYTHON_SYMBOL%b instead" +spaceship::deprecated SPACESHIP_PYENV_COLOR "Use %bSPACESHIP_PYTHON_COLOR%b instead" + +# kubectl_context warnings +spaceship::deprecated SPACESHIP_KUBECONTEXT_SHOW "Use %BSPACESHIP_KUBECTL_CONTEXT_SHOW%b instead" +spaceship::deprecated SPACESHIP_KUBECONTEXT_PREFIX "Use %BSPACESHIP_KUBECTL_CONTEXT_PREFIX%b instead" +spaceship::deprecated SPACESHIP_KUBECONTEXT_SUFFIX "Use %BSPACESHIP_KUBECTL_CONTEXT_SUFFIX%b instead" +spaceship::deprecated SPACESHIP_KUBECONTEXT_COLOR "Use %BSPACESHIP_KUBECTL_CONTEXT_COLOR%b instead" +spaceship::deprecated SPACESHIP_KUBECONTEXT_NAMESPACE_SHOW "Use %BSPACESHIP_KUBECTL_CONTEXT_SHOW_NAMESPACE%b instead" +spaceship::deprecated SPACESHIP_KUBECONTEXT_COLOR_GROUPS "Use %BSPACESHIP_KUBECTL_CONTEXT_COLOR_GROUPS%b instead" + +# ------------------------------------------------------------------------------ +# SETUP +# Setup requirements for prompt +# ------------------------------------------------------------------------------ + +# Runs once when user opens a terminal +# All preparation before drawing prompt should be done here +prompt_spaceship_setup() { + autoload -Uz vcs_info + autoload -Uz add-zsh-hook + autoload -Uz add-zsh-hook + autoload -Uz is-at-least + + if ! is-at-least 5.2; then + print -P "%Bspaceship-prompt%b requires at least %Bzsh v5.2%b (you have %Bv$ZSH_VERSION%b)." + print -P "Please upgrade your zsh installation." + fi + + # This variable is a magic variable used when loading themes with zsh's prompt + # function. It will ensure the proper prompt options are set. + prompt_opts=(cr percent sp subst) + + # Borrowed from promptinit, sets the prompt options in case the prompt was not + # initialized via promptinit. + setopt noprompt{bang,cr,percent,subst} "prompt${^prompt_opts[@]}" + + # Initialize builtin functions + zmodload zsh/datetime + zmodload zsh/mathfunc + + # Add hooks + add-zsh-hook preexec prompt_spaceship_preexec + add-zsh-hook precmd prompt_spaceship_precmd + add-zsh-hook chpwd prompt_spaceship_chpwd + + # Disable python virtualenv environment prompt prefix + VIRTUAL_ENV_DISABLE_PROMPT=true + + # Configure vcs_info helper for potential use in the future + zstyle ':vcs_info:*' enable git + zstyle ':vcs_info:git*' formats '%b' + + # Load sections before rendering + spaceship::core::load_sections +} + +# ------------------------------------------------------------------------------ +# ENTRY POINT +# An entry point of prompt +# ------------------------------------------------------------------------------ + +# Pass all arguments to the spaceship_setup function +prompt_spaceship_setup "$@" diff --git a/home/.zsh/themes/spaceship-prompt/tests/ansible.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/ansible.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/bun.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/bun.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/cache.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/cache.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/char.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/char.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/crystal.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/crystal.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/dart.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/dart.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/deno.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/deno.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/dir.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/dir.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/docker_compose.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/docker_compose.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/elm.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/elm.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/gnu_screen.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/gnu_screen.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/hooks.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/hooks.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/host.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/host.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/lua.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/lua.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/nix_shell.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/nix_shell.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/ocaml.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/ocaml.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/perl.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/perl.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/scala.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/scala.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/section.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/section.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/stubs/ansible b/home/.zsh/themes/spaceship-prompt/tests/stubs/ansible old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/stubs/bun b/home/.zsh/themes/spaceship-prompt/tests/stubs/bun old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/stubs/crystal b/home/.zsh/themes/spaceship-prompt/tests/stubs/crystal old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/stubs/dart b/home/.zsh/themes/spaceship-prompt/tests/stubs/dart old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/stubs/deno b/home/.zsh/themes/spaceship-prompt/tests/stubs/deno old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/stubs/docker-compose b/home/.zsh/themes/spaceship-prompt/tests/stubs/docker-compose old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/stubs/elm b/home/.zsh/themes/spaceship-prompt/tests/stubs/elm old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/stubs/lua b/home/.zsh/themes/spaceship-prompt/tests/stubs/lua old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/stubs/ocaml b/home/.zsh/themes/spaceship-prompt/tests/stubs/ocaml old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/stubs/perl b/home/.zsh/themes/spaceship-prompt/tests/stubs/perl old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/stubs/scalac b/home/.zsh/themes/spaceship-prompt/tests/stubs/scalac old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/stubs/v b/home/.zsh/themes/spaceship-prompt/tests/stubs/v old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/user.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/user.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/utils.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/utils.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/themes/spaceship-prompt/tests/vlang.test.zsh b/home/.zsh/themes/spaceship-prompt/tests/vlang.test.zsh old mode 100755 new mode 100644 diff --git a/home/.zsh/zshrc b/home/.zsh/zshrc index 8c04939..9263608 100644 --- a/home/.zsh/zshrc +++ b/home/.zsh/zshrc @@ -23,6 +23,7 @@ alias lgrep="find | grep" alias psgrep="ps axu | grep" alias plasmarestart="killall plasmashell; kstart plasma-desktop" alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"' +alias vim="vimx" ### ZSH HOME export ZSH=$HOME/.zsh @@ -57,8 +58,8 @@ bindkey -s "^X" 'n^M' source $ZSH/themes/powerlevel10k/powerlevel10k.zsh-theme source $ZSH/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh source $ZSH/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh -source /usr/share/fzf/key-bindings.zsh -source /usr/share/fzf/completion.zsh +source ~/.local/share/fzf/key-bindings.zsh +source ~/.local/share/fzf/completion.zsh source $ZSH/plugins/wakeonlan/wakeonlan.plugin.zsh fpath=($ZSH/plugins/zsh-completions/src $fpath) @@ -67,4 +68,4 @@ export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat export FZF_CTRL_R_OPTS='--no-sort --exact' ### --- nnn Config ------------------------------------ -source /usr/share/nnn/quitcd/quitcd.bash_zsh +source ~/.local/share/nnn/quitcd/quitcd.bash_zsh