mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
If the theme-file is linked, dereference that link and source the right functions.
This commit is contained in:
parent
0fa635275c
commit
29693f957d
1 changed files with 12 additions and 4 deletions
|
@ -17,29 +17,37 @@
|
|||
#zstyle ':vcs_info:*+*:*' debug true
|
||||
#set -o xtrace
|
||||
|
||||
# Check if filename is a symlink.
|
||||
if [[ -L "$0" ]]; then
|
||||
filename="$(realpath -P $0 2>/dev/null || readlink -f $0 2>/dev/null)"
|
||||
else
|
||||
filename="$0"
|
||||
fi
|
||||
script_location="$(dirname $filename)"
|
||||
|
||||
################################################################
|
||||
# Source icon functions
|
||||
################################################################
|
||||
|
||||
source $(dirname "$0")/functions/icons.zsh
|
||||
source $script_location/functions/icons.zsh
|
||||
|
||||
################################################################
|
||||
# Source utility functions
|
||||
################################################################
|
||||
|
||||
source $(dirname "$0")/functions/utilities.zsh
|
||||
source $script_location/functions/utilities.zsh
|
||||
|
||||
################################################################
|
||||
# Source color functions
|
||||
################################################################
|
||||
|
||||
source $(dirname "$0")/functions/colors.zsh
|
||||
source $script_location/functions/colors.zsh
|
||||
|
||||
################################################################
|
||||
# Source VCS_INFO hooks / helper functions
|
||||
################################################################
|
||||
|
||||
source $(dirname "$0")/functions/vcs.zsh
|
||||
source $script_location/functions/vcs.zsh
|
||||
|
||||
################################################################
|
||||
# Color Scheme
|
||||
|
|
Loading…
Reference in a new issue