Loading improvements
.bashrc will skip .swp files (editors leave those while open) bin.path renamed to path.env and PATH manipulation should be 'cleaner' it adds required dirs to paths, but also makes sure no duplicates are inserted. chezmoi logic split, and status is seperated from aliases. Disable chezmoi status on load, as it is SLOW.
This commit is contained in:
parent
ce4d8c303d
commit
7c17b8922c
6 changed files with 24 additions and 14 deletions
|
@ -13,7 +13,7 @@ if [ -d ~/.sz.shrc.d ]; then
|
|||
script_source+=("$(find ~/.sz.shrc.d -maxdepth 0 -type d)")
|
||||
script_source+=("$(find ~/.sz.shrc.d -maxdepth 1 -type d -name "$(ps -p$$ -ho comm).post")")
|
||||
for script_src in ${script_source[@]}; do
|
||||
scripts=$(find $script_src -maxdepth 1 -type f -not -name "*.off" | sort)
|
||||
scripts=$(find $script_src -maxdepth 1 -type f -not -name "*.off" -not -name "*.swp" | sort)
|
||||
for script_name in $scripts; do
|
||||
if [ -r $script_name ]; then
|
||||
[ -z ${DBG_SZSHRC} ] || echo "Sourcing $script_name..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue