~xdavidwu/dotfiles

d158c37a19e5df7903dedff02f0236797dcdd112 — Pinghao Wu 1 year, 2 months ago 1c57e8c
bash: aliases to extract sigs/errnos from kernel header
1 files changed, 2 insertions(+), 0 deletions(-)

M .bashrc
M .bashrc => .bashrc +2 -0
@@ 59,6 59,8 @@ alias artisan81="php81 artisan"
alias artisan="php82 artisan"
alias tiocgwinsz="python3 -c \"import struct, fcntl, termios; print('%d %d %d %d' % struct.unpack('4H', fcntl.ioctl(2, termios.TIOCGWINSZ, ' ' * 8)))\""
alias dl="curl -OJLR --compressed"
alias errno="grep -h '^#define[[:space:]]*E' /usr/include/asm-generic/errno* | sed 's|^#define[[:space:]]*||'"
alias signal="grep -h '^#define SIG' /usr/include/asm/signal.h | sed 's|^#define ||'"

play-playlist() {
	ARGS=