Skip to content

Commit 63b4adc

Browse files
committed
feat: add zoxide tool, replace autojump
1 parent b6d9765 commit 63b4adc

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Base on [devcontainers/base](https://github.com/devcontainers/images/tree/main)
1616
- [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh)
1717
- [git](http://git-scm.com/) - A distributed version control system
1818
- [fzf](https://github.com/junegunn/fzf) - A command-line fuzzy finder
19-
- [autojump](https://github.com/wting/autojump) - A cd command that learns - easily navigate directories from the command line
19+
- [zoxide](https://github.com/ajeetdsouza/zoxide) - A smarter cd command. Supports all major shells.
2020
- [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions)
2121
- [direnv](https://github.com/direnv/direnv) - unclutter your .profile, set env by dir automate
2222

install-pkg.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ apt-get install -y openssh-server
3232
echo "AcceptEnv SHELL_OS LC_*" > /etc/ssh/sshd_config.d/devcontainer.conf
3333

3434
# zsh utils 命令行终端
35-
apt-get install -y autojump fzf
35+
apt-get install -y fzf
3636
curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -o /usr/local/bin/zsh-install.sh && chmod a+x /usr/local/bin/zsh-install.sh
3737
export ZSH="/opt/oh-my-zsh" && export CHSH=no && zsh-install.sh
3838
export ZSH_CUSTOM=${ZSH}/custom/plugins
@@ -121,6 +121,11 @@ wget -q https://github.com/astral-sh/uv/releases/download/${UV_VERSION}/uv-x86_6
121121
tar -xf uv-x86_64-unknown-linux-gnu.tar.gz
122122
mv uv-x86_64-unknown-linux-gnu/* /usr/local/bin
123123

124+
# Install zoxide(autojump alternative)
125+
export ZOXIDE_VERSION=0.9.7
126+
wget -q https://github.com/ajeetdsouza/zoxide/releases/download/v${ZOXIDE_VERSION}/zoxide_${ZOXIDE_VERSION}-1_amd64.deb
127+
dpkg -i ./zoxide_${ZOXIDE_VERSION}-1_amd64.deb
128+
124129
# Clean up
125130
mkdir -p /data/repos /data/pub /data/logs /data/etc/supervisord
126131

root/.zshrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ zstyle ':omz:update' mode disabled # disable automatic updates
7070
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
7171
# Example format: plugins=(rails git textmate ruby lighthouse)
7272
# Add wisely, as too many plugins slow down shell startup.
73-
plugins=(git autojump fzf extract zsh-autosuggestions kubectl-autocomplete helm-autocomplete)
73+
plugins=(git zoxide fzf extract zsh-autosuggestions kubectl-autocomplete helm-autocomplete)
7474

7575
source $ZSH/oh-my-zsh.sh
7676

0 commit comments

Comments
 (0)