Making aliases work, that relay on oh-my-zsh plugins

This commit is contained in:
JGill
2021-09-25 10:41:48 +05:30
parent 04b096160b
commit 431b81b2a7
2 changed files with 11 additions and 7 deletions

15
.zshrc
View File

@@ -1,7 +1,6 @@
################ DO NOT MODIFY THIS FILE #######################
################################################################
################# DO NOT MODIFY THIS FILE #######################
####### PLACE YOUR CONFIGS IN ~/.config/ezsh/zshrc FOLDER #######
#################################################################
# This file is created by ezsh setup.
# Place all your .zshrc configurations / overrides in a single or multiple files under ~/.config/ezsh/zshrc/ folder
@@ -11,7 +10,6 @@
# Load ezsh configurations
source "$HOME/.config/ezsh/ezshrc.zsh"
# Any zshrc configurations under the folder ~/.config/ezsh/zshrc/ will override the default ezsh configs.
# Place all of your personal configurations over there
ZDOTDIR="$HOME/.config/ezsh/zshrc"
@@ -21,3 +19,10 @@ if [ "$(ls -A $ZDOTDIR)" ]; then
source "$file"
done
fi
# Now source oh-my-zsh.sh so that any plugins added in ~/.config/ezsh/zshrc/* files also get loaded
source $ZSH/oh-my-zsh.sh
# Configs that can only work after "source $ZSH/oh-my-zsh.sh", such as Aliases that depend oh-my-zsh plugins
alias k="k -h" # show human readable file sizes, in kb, mb etc