From c36e6589cfe40d9540ed0e8af39a4ac5619fc9c1 Mon Sep 17 00:00:00 2001 From: Tri Vo Khac <33442340+vokhactri@users.noreply.github.com> Date: Fri, 22 Dec 2023 02:42:11 +0700 Subject: [PATCH] update: - run zap script every single time - plug local repo first - use lsd instead of exa --- zsh/.config/zsh/.zshrc | 16 ++++++++-------- zsh/.config/zsh/exports.zsh | 2 ++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 28fb3dd..6766d20 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -4,25 +4,25 @@ ZAP_BRANCH=release-v1 if [ ! -f $ZAP_SCRIPT ]; then git clone -b "$ZAP_BRANCH" https://github.com/zap-zsh/zap.git "$ZAP_DIR" &> /dev/null || { echo "❌ Failed to install Zap" && return 2 } -else - source "$ZAP_SCRIPT" fi +source "$ZAP_SCRIPT" + repos=( + # local plugins + "$ZDOTDIR/aliases.zsh" + "$ZDOTDIR/exports.zsh" + "$ZDOTDIR/eval.zsh" # remote plugins zsh-users/zsh-autosuggestions zsh-users/zsh-completions zdharma-continuum/fast-syntax-highlighting hlissner/zsh-autopair wintermi/zsh-brew + wintermi/zsh-lsd zap-zsh/supercharge zap-zsh/fzf - zap-zsh/fnm - zap-zsh/exa - # local plugins - "$ZDOTDIR/aliases.zsh" - "$ZDOTDIR/exports.zsh" - "$ZDOTDIR/eval.zsh" + /wintermi/zsh-fnm ) mac_only_repos=(wintermi/zsh-brew) diff --git a/zsh/.config/zsh/exports.zsh b/zsh/.config/zsh/exports.zsh index 3677f2a..c7c0169 100644 --- a/zsh/.config/zsh/exports.zsh +++ b/zsh/.config/zsh/exports.zsh @@ -14,3 +14,5 @@ export SUDO_EDITOR="micro" export STARSHIP_CONFIG="$XDG_CONFIG_HOME"/starship/starship.toml export NODE_OPTIONS="--dns-result-order=ipv4first" + +export PATH="/home/trivk/.local/share/fnm:$PATH"