From 69d2a843e2677276df3ea443f14a03325dee2859 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 23 Mar 2023 18:04:36 +0000 Subject: [PATCH] fix some paths --- dot-files/zshrc | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/dot-files/zshrc b/dot-files/zshrc index 8e5ed6c..020effc 100644 --- a/dot-files/zshrc +++ b/dot-files/zshrc @@ -1,16 +1,11 @@ # Path to your oh-my-zsh configuration. ZSH=$HOME/.oh-my-zsh -ZSH_CUSTOM=$HOME/.zsh_custom -# Set name of the theme to load. -# Look in ~/.oh-my-zsh/themes/ -# Optionally, if you set this to "random", it'll load a random theme each -# time that oh-my-zsh is loaded. -ZSH_THEME="terst" +BASE_PATH=$HOME/workspace/thepeterstone/home-sync +ZGEN=$BASE_PATH/lib/zgen # load zgen -_root=$(\cd $ZSH; \cd `pwd -P`/../..; pwd -P) -source "${_root}/lib/zgen/zgen.zsh" +source "${ZGEN}/zgen.zsh" # check if there's no init script if ! zgen saved; then @@ -124,8 +119,8 @@ export PATH="/usr/local/bin:/usr/local/sbin:$PATH" export PATH="$HOME/bin:$HOME/code/home-sync/bin:$PATH" # added by home-sync # load functions -source ~/workspace/home-sync/bin/zsh/rc-functions -alias rcf='vim ~/workspace/home-sync/bin/zsh/rc-functions && source ~/workspace/home-sync/bin/zsh/rc-functions' +test -e $BASE_PATH/bin/zsh/rc-functions && source $BASE_PATH/bin/zsh/rc-functions +alias rcf="vim $BASE_PATH/bin/zsh/rc-functions && source $BASE_PATH/bin/zsh/rc-functions" # load local overrides or extensions [ -e ~/.zshrc-local ] && source ~/.zshrc-local