added zulu last part
This commit is contained in:
parent
51de7d83b4
commit
36e19e0942
3 changed files with 32 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -3,3 +3,5 @@ lib/zulu/config/fpath
|
|||
lib/zulu/config/cdpath
|
||||
lib/zulu/config/manpath
|
||||
lib/zulu/config/alias
|
||||
lib/zulu/config/ZULU_INSTALLED
|
||||
lib/zulu/share/_zulu
|
||||
|
|
22
install_zulu.zsh
Normal file
22
install_zulu.zsh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/zsh
|
||||
pathfile="${ZUC}/path"
|
||||
fpathfile="${ZUC}/fpath"
|
||||
cdpathfile="${ZUC}/cdpath"
|
||||
manpathfile="${ZUC}/manpath"
|
||||
aliasfile="${ZUC}/alias"
|
||||
|
||||
echo "${ZUL}/bin" > $pathfile
|
||||
echo "${ZUL}/share" > $fpathfile
|
||||
echo "" > $cdpathfile
|
||||
echo "" > $manpathfile
|
||||
echo "" > $aliasfile
|
||||
|
||||
for p in "${path[@]}"; do echo "$p" >> $pathfile; done
|
||||
for p in "${fpath[@]}"; do echo "$p" >> $pathfile; done
|
||||
for p in "${cdpath[@]}"; do echo "$p" >> $pathfile; done
|
||||
for p in "${manpath[@]}"; do echo "$p" >> $pathfile; done
|
||||
IFS=$'\n'; for a in `alias`; do echo "alias $a\n" >> $aliasfile; done
|
||||
|
||||
${ZUL}/core/build.zsh
|
||||
|
||||
ln -s ${ZUL}/core/zulu.zsh-completion ${ZUL}/share/_zulu
|
10
zsh/zshrc
10
zsh/zshrc
|
@ -35,12 +35,18 @@ case $(uname -n) in
|
|||
;;
|
||||
esac
|
||||
|
||||
# Install Zulu if needed
|
||||
if [[ ! -e ${ZUC}/ZULU_INSTALLED ]]; then
|
||||
source ${DOT}/install_zulu.zsh
|
||||
touch ${ZUC}/ZULU_INSTALLED
|
||||
fi
|
||||
|
||||
# Source the needed Parts
|
||||
#source ${ZUL}/core/zulu # Zulu
|
||||
source ${ZUL}/core/zulu # Zulu
|
||||
source ${OMZ}/oh-my-zsh.sh # Oh My ZSH
|
||||
source ${LIB}/highlighting/zsh-syntax-highlighting.zsh # Syntax Highlighting
|
||||
source ${HOME}/.fzf.zsh # FZF
|
||||
for file in ${OWN}/aliases.d/*.zsh; do source $file; done # Aliases
|
||||
|
||||
# Init Zulu
|
||||
#zulu init
|
||||
zulu init
|
||||
|
|
Loading…
Add table
Reference in a new issue