Skip to content

Commit

Permalink
sorteduniq alias
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Aug 17, 2023
1 parent 20cc801 commit 4ab47ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cron/crontab
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
20 17,18 * * 6 $HOME/code/dotfiles/cron/weekly.sh
#=====================================================================#

5 17 * * MON-FRI $HOME/code/dotfiles/cron/workday-end.sh


# disabled for now
# 20 17,18 * * 1-5 $HOME/code/dotfiles/cron/twice-during-weekdays.sh
Expand Down
9 changes: 8 additions & 1 deletion fish/aliases.fish
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,14 @@ alias hosts='sudo $EDITOR /etc/hosts' # yes I occasionally 127.0.0.1 twitter.c

alias push="git push"

alias ag='ag -W (math $COLUMNS - 12)' # i used to like `--follow --hidden` but dont anymore. -follow ends up with lots of fstat errors on broken symlinks. and --hidden is something that should be turned on explicitly.
# ag defaults. go as wide as terminal (minus some space for line numbers)
# i used to like `--follow --hidden` but dont anymore. -follow ends up with lots of fstat errors on broken symlinks. and --hidden is something that should be turned on explicitly.
alias ag='command ag -W (math $COLUMNS - 14)'

# for counting instances.. `ag -o 'metadata","name":".*?"' trace.json | sorteduniq`
alias sorteduniq="sort | uniq -c | sort -r"
alias sorteduniq-asc="sort | uniq -c | sort"


alias diskspace_report="df -P -kHl"
alias free_diskspace_report="diskspace_report"
Expand Down

0 comments on commit 4ab47ae

Please sign in to comment.