From d290b0b1a319365c4866afea6cc633a127125911 Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Mon, 28 Aug 2023 14:45:09 +0200 Subject: [PATCH] Rename alias file --- .config/shell/{aliasrc => aliases/common} | 0 .config/zsh/.zshrc | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) rename .config/shell/{aliasrc => aliases/common} (100%) diff --git a/.config/shell/aliasrc b/.config/shell/aliases/common similarity index 100% rename from .config/shell/aliasrc rename to .config/shell/aliases/common diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 13df061..74c8106 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -147,4 +147,7 @@ bindkey '^[[B' history-substring-search-down RPROMPT='$(git_prompt_string)' [ -f "$ZDOTDIR/completion" ] && . "$ZDOTDIR/completion" # Additional ZSH completion -[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && . "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" + +find "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliases" -type f | while read -r alias_file; do + source "$alias_file" +done