Reorganize files

This commit is contained in:
2023-11-21 04:04:09 -08:00
parent f1e1c5ddb3
commit 309b32e515
3 changed files with 3 additions and 30 deletions

View File

@ -18,8 +18,8 @@ function cmd_exists {
[[ -v ZSH_USER_DIR ]] || ZSH_USER_DIR="${HOME}/.zsh.d"
# source_user_file <name>
function source_user_file {
local machine_specific="${ZSH_CONFIG_DIR}/local/${1}.${HOST}.zsh"
local default="${ZSH_CONFIG_DIR}/local/${1}.zsh"
local machine_specific="${ZSH_CONFIG_DIR}/${1}.${HOST}.zsh"
local default="${ZSH_CONFIG_DIR}/${1}.zsh"
if [ -e "${machine_specific}" ]; then
source "${machine_specific}"
elif [ -e "${default}" ]; then
@ -267,7 +267,7 @@ zstyle ':fzf-tab:*' switch-group 'ctrl-h' 'ctrl-l'
zstyle ':fzf-tab:*' fzf-bindings 'ctrl-a:toggle-all'
# Load user init file
source_user_file 'init'
source_user_file 'local'
# THE FOLLOWING PLUGINS MUST COME LAST