|
|
@ -1,70 +1,50 @@ |
|
|
|
#!/bin/sh |
|
|
|
|
|
|
|
# gitup='git remote | xargs -L1 git push --all' \ |
|
|
|
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' \ |
|
|
|
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' \ |
|
|
|
dcr='docker compose run' \ |
|
|
|
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" \ |
|
|
|
paratest="docker compose exec fpm ./test" \ |
|
|
|
jsonlint="python -m json.tool" \ |
|
|
|
ts="~/.local/bin/tmux-sessionizer" \ |
|
|
|
tmux="tmux attach-session || tmux" \ |
|
|
|
fresh="docker compose exec fpm php artisan migrate:fresh --seed" \ |
|
|
|
shrug="echo '¯\\_(ツ)_/¯' | xclip -selection clipboard && echo 'Copied ASCII shrug to clipboard'" \ |
|
|
|
dab="cat ~/Documents/dab.txt | xclip -selection clipboard && echo 'Copied ASCII dab to clipboard'" |
|
|
|
# Misc |
|
|
|
alias q='exit' |
|
|
|
alias ls="ls --color=auto" |
|
|
|
alias ll="ls -G -alh" |
|
|
|
alias vim='nvim' |
|
|
|
alias grep='grep --color=auto' |
|
|
|
alias vz='nvim ~/.zshrc && source ~/.zshrc' |
|
|
|
alias va='nvim ~/.config/aliasrc && source ~/.zshrc' |
|
|
|
alias sz='source ~/.zshrc' |
|
|
|
alias c="xclip -selection clipboard" |
|
|
|
alias v="xclip -selection clipboard -o" |
|
|
|
alias lf="lfcd" |
|
|
|
alias ducks='du -cks * | sort -rn | head' |
|
|
|
|
|
|
|
alias \ |
|
|
|
c="xclip -selection clipboard" \ |
|
|
|
v="xclip -selection clipboard -o" |
|
|
|
# Docker |
|
|
|
alias dc="docker compose" |
|
|
|
alias dcu='docker compose up' |
|
|
|
alias dce='docker compose exec' |
|
|
|
alias dcr='docker compose run' |
|
|
|
alias dps="docker ps" |
|
|
|
alias ds="docker stop" |
|
|
|
|
|
|
|
# Docker + Laravel |
|
|
|
alias artisan="docker compose exec fpm php artisan" |
|
|
|
alias tinker="docker compose exec fpm php artisan tinker" |
|
|
|
alias phpunit="docker compose exec fpm ./vendor/bin/phpunit" |
|
|
|
alias paratest="docker compose exec fpm ./test" |
|
|
|
alias fresh="docker compose exec fpm php artisan migrate:fresh --seed" |
|
|
|
|
|
|
|
alias ts="~/.local/bin/tmux-sessionizer" |
|
|
|
alias tmux="tmux attach-session || tmux" |
|
|
|
|
|
|
|
# Clipboard |
|
|
|
alias c="xclip -selection clipboard" |
|
|
|
alias v="xclip -selection clipboard -o" |
|
|
|
|
|
|
|
if [[ $(uname) == 'Darwin' ]]; then |
|
|
|
alias \ |
|
|
|
c="pbcopy" \ |
|
|
|
v="pbpaste" |
|
|
|
alias c="pbcopy" |
|
|
|
alias v="pbpaste" |
|
|
|
fi |
|
|
|
|
|
|
|
# Jack specific |
|
|
|
alias jack-artisan="dce app-fpm ./artisan" |
|
|
|
alias jack-paratest="dce app-fpm ./test" |
|
|
|
alias jack-phpunit="dce app-fpm ./vendor/bin/phpunit" |
|
|
|
|
|
|
|
alias jack-subscription-artisan="dce subscription-fpm ./artisan" |
|
|
|
alias jack-subscription-paratest="dce subscription-fpm ./test" |
|
|
|
alias jack-subscription-phpunit="dce subscription-fpm ./vendor/bin/phpunit" |