~xdavidwu/dotfiles

3366ff49c2a6122a0d8938d2c50bf08f16b446c6 — xdavidwu 2 years ago 976460a
bash: make php alias defaults to php81
1 files changed, 5 insertions(+), 5 deletions(-)

M .bashrc
M .bashrc => .bashrc +5 -5
@@ 58,14 58,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"
	alias composer8="php8 /usr/bin/composer.phar"
else
	alias composer7="php7 /usr/bin/composer"
	alias composer81="php81 /usr/bin/composer"
	alias composer8="php8 /usr/bin/composer"
fi
alias artisan="php8 artisan"
alias artisan8="php8 artisan"
alias artisan7="php7 artisan"
alias artisan81="php81 artisan"
alias artisan="php81 artisan"
alias tiocgwinsz="python3 -c \"import struct, fcntl, termios; print('%d %d %d %d' % struct.unpack('4H', fcntl.ioctl(2, termios.TIOCGWINSZ, '        ')))\""
alias dl="curl -OJLR --compressed"



@@ 220,5 220,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 artisan81 composer7 composer81
[ $? -eq 124 ] && complete -F _symfony artisan artisan7 artisan8 composer7 composer8
true