Skip to content

Commit

Permalink
Add navi
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmercer committed Dec 4, 2023
1 parent 3d1aeca commit 3b5ce18
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions .chezmoiignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gpg/
homebrew/
iterm2/
macos/
navi/
node/
rust/
scripts/
Expand Down
10 changes: 8 additions & 2 deletions .chezmoiscripts/linux/run_onchange_before_10_installs.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ for package in "${packages[@]}"; do
sudo apt install -y $package
done

# # install eza: https://github.com/eza-community/eza#debian-and-ubuntu
# install eza: https://github.com/eza-community/eza#debian-and-ubuntu
if [ ! -d /etc/apt/keyrings ]; then
sudo mkdir -p /etc/apt/keyrings
fi
Expand All @@ -67,9 +67,12 @@ sudo chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.lis
sudo apt update
sudo apt install -y eza

# # noninteractive rust install (needed for delta)
### RUST INSTALLS

# noninteractive rust install (needed for delta)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"

# install delta
cargo install git-delta

Expand All @@ -84,6 +87,9 @@ tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin
sudo rm -rf "$HOME"/lazygit*

# navi
cargo install --locked navi

# Remove packages
rm_packages=("nano")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ git clone https://github.com/lxbrtsch/Menlo-for-Powerline.git ~/.fonts
fc-cache -vf ~/.fonts

# Install arsenal
python3 -m pip install --no-input arsenal-cli
# NOTE: currently trying navi instead of arsenal
# python3 -m pip install --no-input arsenal-cli

# Load default MATE terminal settings
dbus-launch dconf load /org/mate/terminal/ < $DOTFILES/terminal/MATE.terminal
Expand Down
5 changes: 5 additions & 0 deletions navi/widget.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if command -v navi >/dev/null 2>&1; then
eval "$(navi widget zsh)"
else
echo "navi is not installed"
fi

0 comments on commit 3b5ce18

Please sign in to comment.