Skip to content

Commit

Permalink
Include hidden . files from ~/.config/ezsh/zshrc/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jotyGill committed May 24, 2024
1 parent 6eee531 commit cb467f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ source "$HOME/.config/ezsh/ezshrc.zsh"
ZSH_CONFIGS_DIR="$HOME/.config/ezsh/zshrc"

if [ "$(ls -A $ZSH_CONFIGS_DIR)" ]; then
for file in "$ZSH_CONFIGS_DIR"/*; do
source "$file"
for file in "$ZSH_CONFIGS_DIR"/* "$ZSH_CONFIGS_DIR"/.*; do
# Exclude '.' and '..' from being sourced
if [ -f "$file" ]; then
source "$file"
fi
done
fi

Expand Down
2 changes: 1 addition & 1 deletion ezshrc.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ SAVEHIST=50000 #save upto 50,000 lines in history. oh-my-zsh default is 10,
#setopt hist_ignore_all_dups # dont record duplicated entries in history during a single session

alias myip="wget -qO- https://wtfismyip.com/text" # quickly show external ip address
alias l="ls -lAhrtF" # show all except . .. , sort by recent, / at the end of folders
alias l="ls --hyperlink=auto -lAhrtF" # show all except . .. , sort by recent, / at the end of folders, clickable
alias e="exit"
alias ip="ip --color=auto"

Expand Down

0 comments on commit cb467f3

Please sign in to comment.