You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

49 lines
2.6 KiB

#!/bin/sh
alias \
q='exit' \
ls="ls --color=auto" \
ll="ls -G -alh" \
dd='sudo dd status=progress' \
h="history 1 | grep" \
vim='nvim' \
grep='grep --color=auto' \
p='sudo pacman' \
extip='curl -s www.icanhazip.com' \
gitup='git push origin $(git rev-parse --abbrev-ref HEAD)' \
gco='git checkout' \
gbls='git --no-pager branch -a' \
vv='nvim ~/.config/nvim/init.lua' \
vz='nvim ~/.zshrc && source ~/.zshrc' \
va='nvim ~/.config/aliasrc && source ~/.zshrc' \
sz='source ~/.zshrc' \
delorig='find . -name "*.orig" -exec rm {} \;' \
delbak='find . -name "*.bak" -exec rm {} \;' \
cpp="rsync --progress --recursive" \
sv="sudo nvim" \
c="xclip -selection clipboard" \
v="xclip -selection clipboard -o" \
lf="lfcd" \
dcu='docker-compose up' \
dce='docker-compose exec' \
dps="docker ps" \
ds="docker stop" \
dce-test='docker-compose exec fpm ./artisan test' \
dc-phpunit='docker-compose exec fpm ./vendor/bin/phpunit' \
dm='mysql -h localhost -P 33061 --protocol=tcp -u root -psecret' \
staging-mysql='mysql --host tf-codium-staging.ch66levpagqo.ap-southeast-2.rds.amazonaws.com --user=root --password=r43r34rg' \
mailhog='docker run -d --restart unless-stopped -p 1025:1025 -p 8025:8025 mailhog/mailhog' \
t12wl='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 workspace list ' \
t12ws='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 workspace select ' \
t12wd='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 workspace delete ' \
t12='docker run -it -v $(pwd):/workpace -v /root/.ssh:/root/.ssh:ro -v ~/.aws:/root/.aws -w /workpace hashicorp/terraform:0.12.27 ' \
ducks='du -cks * | sort -rn | head' \
fn="find . -name" \
artisan="docker-compose exec fpm php artisan" \
tinker="docker-compose exec fpm php artisan tinker" \
phpunit="docker-compose exec fpm ./vendor/bin/phpunit" \
jsonlint="python -m json.tool" \
migseed="docker-compose exec fpm php artisan migrate --seed" \
dsa="docker kill $(docker ps -q)"
alias thermoview-run='docker-compose -f docker-compose.yml run desktop bash -c "/opt/local-electron.sh" ; rm -rf desktop/pulse-*'
alias thermoview-build-run='dce node gulp && docker-compose -f docker-compose.yml run desktop bash -c "/opt/build/build-local.sh && /opt/local-electron.sh" ; rm -rf desktop/pulse-*'