Skip to content

Commit

Permalink
fix: exclude trial aliases from alias command
Browse files Browse the repository at this point in the history
and also improve command when dealing with underscores
  • Loading branch information
cerico committed May 1, 2023
1 parent 12e564a commit 524afc6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions files/zsh/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source ~/.zsh/godaddy
source ~/.zsh/supabase
source ~/.zsh/macfair
source ~/.zsh/tokens
source ~/.zsh/trialling
source ~/.zsh/_trialling
export MARKPATH=$HOME/.marks
alias sedi='sed -i "" -e'

Expand All @@ -12,11 +12,18 @@ aliases () {
do
echo ${i:u}
echo -------------
grep '() {$' ~/.zsh/$i | tr -cd '[:alnum:]_\n' | sort
grep '^[[:alpha:]].*{' ~/.zsh/$i | tr -cd '[:alnum:]# _\n' | sort
echo ""
done
}

trialling () {
echo $(ColorCyan "TRIAL ALIASES")
echo $(ColorCyan -------------)
grep '^[[:alpha:]].*{' ~/.zsh/_trialling | tr -cd '[:alnum:]# _\n' | sort
echo ""
}

alphnum () {
tr -cd '[:alnum:]\n'
}
Expand Down

0 comments on commit 524afc6

Please sign in to comment.