# $Id: aliases,v 1.10 2021/09/23 19:46:07 nanons Exp $
#
# Aliases for sh(1) and ksh(1)
#
# Contents of this file should be copied to the shell startup file
# defined in the $ENV environment variable (see shell/dot.kshrc).

# Disable dangerous functionality in awk(1) using pledge(2):
#	$ man -Otag=safe awk
alias awk='awk -safe'

# Don't store timestamps in gzip(1)'d and compress(1)'d files
alias gzip='gzip -n'
alias compress='compress -n'

# Overwrite all scrollback history in the console with clear(1)
# Useful before lock(1)ing the console
alias clear='jot -b "" $((LINES * 9)); clear'

# Command to overwrite file with random data and delete it
# Unnecessary if using full disk encryption
alias shred='rm -Pfv'

# Command to show system temperatures
alias sensors='sysctl hw.sensors | grep temp'

# Commands for viewing POSIX manual pages
# Requires installing an additional package:
#	# pkg_add man-pages-posix
alias pman='man -M /usr/local/share/doc/posix/man'
alias papropos='apropos -M /usr/local/share/doc/posix/man'
alias pwhatis='whatis -M /usr/local/share/doc/posix/man'
