Add install.zsh for standalone installs

This commit is contained in:
2024-04-13 15:46:28 +01:00
parent a9fb5104ac
commit 3accfe0bec
2 changed files with 97 additions and 2 deletions

8
zshrc
View File

@@ -3,8 +3,12 @@
# Load plugin scripts
source-plugin() {
if [ -d ~/.config/zsh/$1 ]; then
source ~/.config/zsh/$1/$1.plugin.zsh
local shared_plugin=~/.local/share/zsh/plugins/$1/$1.plugin.zsh
local local_plugin=~/.config/zsh/$1/$1.plugin.zsh
if [ -f $shared_plugin ]; then
source $shared_plugin
elif [ -f $local_plugin ]; then
source $local_plugin
else
echo "zsh plugin not found: $1"
fi