From 54a7f0139e47b801e46b82f40054527e051e329a Mon Sep 17 00:00:00 2001 From: JGill Date: Thu, 12 May 2022 11:08:22 +0530 Subject: [PATCH 1/2] Remove unnecessary creation of ~ in current directory --- install.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/install.sh b/install.sh index 67700bc..9d972ab 100755 --- a/install.sh +++ b/install.sh @@ -146,11 +146,6 @@ else echo -e "\nNot copying bash_history to zsh_history, as --cp-hist or -c is not supplied\n" fi -ZDOTDIR="~/.config/ezsh/zshrc" -if [ ! -d $ZDOTDIR ]; then - mkdir -p $ZDOTDIR -fi - # source ~/.zshrc echo -e "\nSudo access is needed to change default shell\n" From 76241138d420041ec729e308f6bf5a1735f356e4 Mon Sep 17 00:00:00 2001 From: JGill Date: Thu, 5 Jan 2023 11:48:50 +0000 Subject: [PATCH 2/2] mkdir ~/.config/ezsh/zshrc for personal configs, better alias l --- ezshrc.zsh | 2 +- install.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ezshrc.zsh b/ezshrc.zsh index 7485a0d..eb89dc8 100644 --- a/ezshrc.zsh +++ b/ezshrc.zsh @@ -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 -lah" +alias l="ls -lAhrtF" # show all except . .. , sort by recent, / at the end of folders alias e="exit" diff --git a/install.sh b/install.sh index 9d972ab..bc81177 100755 --- a/install.sh +++ b/install.sh @@ -14,7 +14,9 @@ if mv -n ~/.zshrc ~/.zshrc-backup-$(date +"%Y-%m-%d"); then # backup .zshrc echo -e "Backed up the current .zshrc to .zshrc-backup-date\n" fi -mkdir -p ~/.config/ezsh # the setup will be installed in here +echo -e "The setup will be installed in '~/.config/ezsh'\n" +echo -e "Place your personal zshrc config files under '~/.config/ezsh/zshrc/'\n" +mkdir -p ~/.config/ezsh/zshrc if [ -d ~/.quickzsh ]; then echo -e "\n PREVIOUS SETUP FOUND AT '~/.quickzsh'. PLEASE MANUALLY MOVE ANY FILES YOU'D LIKE TO '~/.config/ezsh' \n"