From 9e58f7cea46350f659d501134b78a054bbd165c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Recai=20Okta=C5=9F?= Date: Sun, 15 Oct 2023 01:38:35 +0300 Subject: [PATCH] . --- bash/bashrc | 6 +++--- bigbang.sh | 2 +- fish/config.fish | 2 +- scripts/desktop/calibre.sh | 5 +++++ scripts/terminal/{jump.sh => zoxide.sh} | 4 ++-- zsh/zshrc | 6 +++--- 6 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 scripts/desktop/calibre.sh rename scripts/terminal/{jump.sh => zoxide.sh} (91%) diff --git a/bash/bashrc b/bash/bashrc index dcd801e..1355586 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -132,13 +132,13 @@ fi # Midnight Commander [[ -f /usr/lib/mc/mc.sh ]] && source /usr/lib/mc/mc.sh -# Jump -command -v jump &>/dev/null && eval "$(jump shell)" - # Fzf [[ -f /usr/share/doc/fzf/examples/key-bindings.bash ]] && source /usr/share/doc/fzf/examples/key-bindings.bash [[ -f /usr/share/doc/fzf/examples/completion.bash ]] && source /usr/share/doc/fzf/examples/completion.bash +# Zoxide +command -v zoxide &>/dev/null && eval "$(zoxide init bash)" + # Direnv (piggybacked) _direnv_program=$(command -v direnv ||:) diff --git a/bigbang.sh b/bigbang.sh index 54de056..ff0e7ff 100644 --- a/bigbang.sh +++ b/bigbang.sh @@ -76,8 +76,8 @@ enter scripts run direnv run fd run fzf - run jump run sudo + run zoxide leave enter runtime diff --git a/fish/config.fish b/fish/config.fish index 619f2b5..493c749 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -12,7 +12,7 @@ if not functions -q fundle; eval (wget -qO- https://git.io/fundle-install); end set -g fundle_plugins_dir "$XDG_CONFIG_HOME"/fish/plugins -status --is-interactive; and type -q jump; and source (jump shell fish | psub) +status --is-interactive; and type -q zoxide; and source (zoxide init fish | psub) # ---------------------------------------------------------------------------------------------------------------------- # Settings diff --git a/scripts/desktop/calibre.sh b/scripts/desktop/calibre.sh new file mode 100644 index 0000000..0c5e012 --- /dev/null +++ b/scripts/desktop/calibre.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set -euo pipefail; [[ -z ${TRACE:-} ]] || set -x + +wget -qO- https://download.calibre-ebook.com/linux-installer.sh | bash -s diff --git a/scripts/terminal/jump.sh b/scripts/terminal/zoxide.sh similarity index 91% rename from scripts/terminal/jump.sh rename to scripts/terminal/zoxide.sh index 2b6a748..df06f10 100644 --- a/scripts/terminal/jump.sh +++ b/scripts/terminal/zoxide.sh @@ -4,8 +4,8 @@ set -euo pipefail; [[ -z ${TRACE:-} ]] || set -x export DEBIAN_FRONTEND=noninteractive -repo=gsamokovarov/jump -file=${TMPDIR:-/tmp}/jump.deb +repo=ajeetdsouza/zoxide +file=${TMPDIR:-/tmp}/zoxide.deb if url=$( echo >&2 "Getting $repo latest package URL..." diff --git a/zsh/zshrc b/zsh/zshrc index a962788..78984c6 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -207,13 +207,13 @@ alias g=git # Midnight Commander [[ -f /usr/lib/mc/mc.sh ]] && source /usr/lib/mc/mc.sh -# Jump -command -v jump &>/dev/null && eval "$(jump shell)" - # Fzf [[ -f /usr/share/doc/fzf/examples/key-bindings.zsh ]] && source /usr/share/doc/fzf/examples/key-bindings.zsh [[ -f /usr/share/doc/fzf/examples/completion.zsh ]] && source /usr/share/doc/fzf/examples/completion.zsh +# Zoxide +command -v zoxide &>/dev/null && eval "$(zoxide init zsh)" + # Direnv (piggybacked) _direnv_program=$(command -v direnv ||:)