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.
 
 
 

50 lines
1.5 KiB

#!/bin/sh
# 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'
# 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"
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"