Skip to content

Commit 4ef59b9

Browse files
committed
Soft-replace cd with zoxide
1 parent 5b80b03 commit 4ef59b9

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

rc/shell/aliases

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ alias ls="ls -C --color=auto -h -Q --group-directories-first --format=horizontal
7777
[ -f "${ROOT_USR_BIN}/wget" ] && alias wget-persistent='wget -c --retry-connrefused --waitretry=1 --read-timeout=10 --timeout=5 -t 0 --hsts-file="${XDG_DATA_HOME}/wget/hosts"'
7878
[ -f "${ROOT_USR_BIN}/xterm" ] && alias xterm='xterm -rv'
7979
[ -f "${ROOT_USR_BIN}/xprop" ] && alias xprop-wmclass='xprop | grep "WM_CLASS"'
80+
[ -f "${ROOT_USR_BIN}/zoxide" ] && alias cd='z'
8081
[ -f "${ROOT_PROC}/acpi/bbswitch" ] && alias bbswitch-status="awk '{print $2}' /proc/acpi/bbswitch"
8182

8283
[ -f "${ROOT_USR_BIN}/alsi" ] && [ ! -f "${ROOT_USR_BIN}/neofetch" ] && alias neofetch='alsi'

rc/shell/bashrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ loadShellRc "${XDG_DATA_HOME}/bash/options"
2727

2828
loadSource "/usr/share/blesh/ble.sh"
2929
loadSource "/usr/share/doc/pkgfile/command-not-found.bash"
30+
31+
[ -f '/usr/bin/zoxide' ] && \
32+
eval "$(zoxide init bash)"

scripts/configure-system.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ fi
13781378
#####################
13791379
### NOTIFICATIONS ###
13801380
#####################
1381-
if does_bin_exist "gnome-shell"; then
1381+
if does_bin_exist 'gnome-shell'; then
13821382
GNOME_NOTIFICATIONS_SCHEMA="org.gnome.desktop.notifications.application:/org/gnome/desktop/notifications/application"
13831383

13841384
# Disable
@@ -1391,8 +1391,8 @@ fi
13911391
########################
13921392
### POWER MANAGEMENT ###
13931393
########################
1394-
if does_bin_exist "gnome-shell"; then
1395-
GNOME_POWER_SCHEMA="org.gnome.settings-daemon.plugins.power"
1394+
if does_bin_exist 'gnome-shell'; then
1395+
GNOME_POWER_SCHEMA='org.gnome.settings-daemon.plugins.power'
13961396

13971397
set_gsetting "${GNOME_POWER_SCHEMA}" idle-dim true
13981398
set_gsetting "${GNOME_POWER_SCHEMA}" sleep-inactive-ac-timeout 1800
@@ -1683,8 +1683,8 @@ if does_bin_exist 'micro'; then
16831683
set_json_property "${MICRO_SETTINGS_FILE}" '.["linter"]' false
16841684
fi
16851685

1686-
if does_bin_exist "pluma"; then
1687-
PLUMA_SCHEMA="org.mate.pluma"
1686+
if does_bin_exist 'pluma'; then
1687+
PLUMA_SCHEMA='org.mate.pluma'
16881688

16891689
if [ "${TEXT_EDITOR_FONT}" != "${MONOSPACE_FONT}" ]; then
16901690
set_gsetting "${PLUMA_SCHEMA}" editor-font "${TEXT_EDITOR_FONT}"
@@ -1696,8 +1696,8 @@ if does_bin_exist "pluma"; then
16961696
set_gsetting "${PLUMA_SCHEMA}" auto-indent true
16971697
set_gsetting "${PLUMA_SCHEMA}" bracket-matching true
16981698
set_gsetting "${PLUMA_SCHEMA}" display-line-numbers true
1699-
set_gsetting "${PLUMA_SCHEMA}" enable-space-drawer-space "show-trailing"
1700-
set_gsetting "${PLUMA_SCHEMA}" enable-space-drawer-tab "show-all"
1699+
set_gsetting "${PLUMA_SCHEMA}" enable-space-drawer-space 'show-trailing'
1700+
set_gsetting "${PLUMA_SCHEMA}" enable-space-drawer-tab 'show-all'
17011701
set_gsetting "${PLUMA_SCHEMA}" insert-spaces ${TEXT_EDITOR_TAB_SPACES}
17021702
set_gsetting "${PLUMA_SCHEMA}" show-single-tab false
17031703
set_gsetting "${PLUMA_SCHEMA}" toolbar-visible false

scripts/update-rcs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ fi
129129

130130
does_bin_exist 'bat' 'batcat' && set_config_value "${SHELL_VARIABLES_RC_PATH}" 'export BAT_THEME' 'Visual Studio Dark+'
131131
does_bin_exist 'optirun' && set_config_value "${SHELL_VARIABLES_RC_PATH}" 'export VGL_READBACK' 'pbo' # Better optirun performance
132+
does_bin_exist 'zoxide' && set_config_value "${SHELL_VARIABLES_RC_PATH}" 'export _ZO_DOCTOR' 0 # Disable zoxide errors
132133

133134
if does_bin_exist 'dotnet'; then
134135
set_config_values "${SHELL_VARIABLES_RC_PATH}" \

0 commit comments

Comments
 (0)