Remove larbs from repo, can be called as gitlab snippet instead. Fix some documentation in zshrc.

This commit is contained in:
Marty Oehme 2019-02-21 19:36:24 +01:00
parent e4980932b9
commit af27c578b2
2 changed files with 17 additions and 222 deletions

20
.zshrc
View file

@ -29,13 +29,27 @@ check_zgen_installation() {
unset ZGEN_PARENT_DIR
}
## //FIXME: Not working yet, globbing not working
#load_config_files() {
# if [ -n "$(/bin/ls $1)" ]; then
# #GLOB=(${1}/[0-1][0-9]-*)
# for dotfile in $(eval "echo {$1/$2}"); do
# print_dbg "TESTING: $dotfile\n" #//DEBUG
# if [ -r "${dotfile}" ]; then
# source "${dotfile}"
# fi
# done
# unset GLOB
# fi
#}
#### ZSHrc - Setting up the Shell
##
## Almost all actual setup is being done with the help of individual files
## in the .zsh.d/ directory. They follow a specific order:
## in the .zsh.d/ directory. This file just loads them. They follow a specific order:
##
## 00-09 are bootstrapping the zsh environment, setting aliases and sane
## shell defaults which should need no changes
## shell defaults which should need no changes (though you can of course).
## 10-19 allow custom bootstrapping of things that need to be set before any
## zsh plugins are loaded (in my case, theme environment vars, etc)
## 20-29 are run *during* zgen setup and can include plugins to be loaded
@ -86,7 +100,7 @@ if [ -n "$(/bin/ls $ZSH_CONFIG_DIR/)" ]; then
if [ -n "$(/bin/ls $ZSH_CONFIG_DIR/)" ]; then
GLOB=($ZSH_CONFIG_DIR/2[0-9]-*)
for dotfile in $GLOB; do
print_dbg "Phase 3: $dotfile\n" #//DEBUG
print_dbg "Phase 2: $dotfile - Plugin\n" #//DEBUG
if [ -r "${dotfile}" ]; then
source "${dotfile}"
fi