From 8aaa4c6c336748ba5454433bc027c533b5fbd5ba Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Mon, 12 Jun 2023 13:51:16 +0200 Subject: [PATCH] aliases for server, zoxide config for server, zoxide stuff only if zoxide command exists --- home/.zsh-server/zshrc | 11 +++++++++++ home/.zsh/zshrc | 8 +++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/home/.zsh-server/zshrc b/home/.zsh-server/zshrc index 4255700..8329618 100644 --- a/home/.zsh-server/zshrc +++ b/home/.zsh-server/zshrc @@ -17,6 +17,8 @@ alias egrep="grep -E" alias lgrep="find | grep" alias psgrep="ps axu | grep" alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"' +alias gg=lazygit +alias reload="source ~/.zshrc" alias gls=/bin/ls ### Functions @@ -79,3 +81,12 @@ source ~/.local/share/nnn/quitcd/quitcd.bash_zsh ### --- local Config ------------------------------------ source ~/.local.zsh + +### --- zoxide Config ------------------------------------ +if ! command -v zoxide &> /dev/null +then + # zoxide not installed, skipping + exit +else + eval "$(zoxide init zsh)" +fi diff --git a/home/.zsh/zshrc b/home/.zsh/zshrc index 621cd3e..7b47bb9 100644 --- a/home/.zsh/zshrc +++ b/home/.zsh/zshrc @@ -106,4 +106,10 @@ alias kimg="kitty +kitten icat" source ~/.local.zsh ### --- zoxide Config ------------------------------------ -eval "$(zoxide init zsh)" +if ! command -v zoxide &> /dev/null +then + # zoxide not installed, skipping + exit +else + eval "$(zoxide init zsh)" +fi