~xdavidwu/dotfiles

4b7a92a0d8f75285310e4d94e7dd5c5cfef2f0bf — xdavidwu 2 years ago b287240
bash: add aliases for php 8.1
1 files changed, 4 insertions(+), 1 deletions(-)

M .bashrc
M .bashrc => .bashrc +4 -1
@@ 53,11 53,14 @@ alias makepkgsh="podman run -itu builder -w /home/builder -v .:/home/builder -v 
alias abuildsh="podman run -itu builder -w /home/builder -v .:/home/builder --userns keep-id registry.xdavidwu.link/ci-modulize/abuild:edge"
if [ -f /usr/bin/composer.phar ]; then
	alias composer7="php7 /usr/bin/composer.phar"
	alias composer81="php81 /usr/bin/composer.phar"
else
	alias composer7="php7 /usr/bin/composer"
	alias composer81="php81 /usr/bin/composer"
fi
alias artisan="php8 artisan"
alias artisan7="php7 artisan"
alias artisan81="php81 artisan"
alias tiocgwinsz="python3 -c \"import struct, fcntl, termios; print('%d %d %d %d' % struct.unpack('4H', fcntl.ioctl(0, termios.TIOCGWINSZ, '        ')))\""
alias dl="curl -OJLR --compressed"



@@ 210,5 213,5 @@ _completion_loader sudo 2>/dev/null
[ $? -eq 124 ] && complete -F _sudo doas

_completion_loader symfony-autocomplete 2>/dev/null
[ $? -eq 124 ] && complete -F _symfony artisan artisan7 composer7
[ $? -eq 124 ] && complete -F _symfony artisan artisan7 artisan81 composer7 composer81
true