2022-04-17 19:47:21 +02:00
|
|
|
# Shortcuts
|
2022-04-17 20:52:22 +02:00
|
|
|
|
|
|
|
# MacOS specifics
|
|
|
|
if [[ $OSTYPE == 'darwin'* ]]; then
|
|
|
|
alias clip="pbcopy"
|
|
|
|
alias copyssh="pbcopy < $HOME/.ssh/id_ed25519.pub"
|
2023-10-29 17:50:49 +01:00
|
|
|
alias ls="${HOMEBREW_PREFIX}/opt/coreutils/libexec/gnubin/ls"
|
2022-04-17 20:52:22 +02:00
|
|
|
alias reloaddns="dscacheutil -flushcache && sudo killall -HUP mDNSResponder"
|
2023-10-29 17:50:49 +01:00
|
|
|
alias composer="php -d memory_limit=-1 ${HOMEBREW_PREFIX}/bin/composer"
|
2022-09-09 00:46:32 +02:00
|
|
|
alias sup="$DOTFILES/macos/bin/pkg-update"
|
2022-04-17 20:52:22 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Linux specifics
|
|
|
|
if [[ $OSTYPE == 'linux'* ]]; then
|
|
|
|
alias clip="xclip -sel clip"
|
|
|
|
alias copyssh="cat $HOME/.ssh/id_rsa.pub | clip"
|
|
|
|
|
2023-03-05 22:35:43 +01:00
|
|
|
alias pnpm="firejail --profile=npm pnpm"
|
2022-04-17 20:52:22 +02:00
|
|
|
alias yarn="firejail yarn"
|
|
|
|
alias npm="firejail npm"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# General
|
2022-04-17 19:47:21 +02:00
|
|
|
alias reloadshell="source $HOME/.zshrc"
|
|
|
|
alias ll="ls -AhlFo --color --group-directories-first"
|
2022-04-17 20:52:22 +02:00
|
|
|
alias shrug="echo '¯\_(ツ)_/¯' | clip"
|
2022-04-17 19:47:21 +02:00
|
|
|
alias c="clear"
|
|
|
|
alias compile="commit 'compile'"
|
|
|
|
alias version="commit 'version'"
|
|
|
|
|
|
|
|
# Directories
|
|
|
|
alias dotfiles="cd $DOTFILES"
|
|
|
|
|
|
|
|
# Laravel
|
|
|
|
alias a="php artisan"
|
|
|
|
alias mfs="php artisan migrate:fresh --seed"
|
|
|
|
alias tinker="php artisan tinker"
|
|
|
|
alias seed="php artisan db:seed"
|
|
|
|
alias serve="php artisan serve"
|
|
|
|
|
|
|
|
# PHP
|
2022-08-15 01:24:57 +02:00
|
|
|
alias cfresh="rm -rf vendor/ && composer i"
|
2022-04-17 19:47:21 +02:00
|
|
|
|
|
|
|
# JS
|
2022-08-15 01:24:57 +02:00
|
|
|
alias nfresh="rm -rf node_modules/ && pnpm install"
|
2022-04-17 19:47:21 +02:00
|
|
|
|
|
|
|
# Git
|
|
|
|
alias gst="git status"
|
|
|
|
alias gb="git branch"
|
|
|
|
alias gc="git checkout"
|
|
|
|
alias gl="git log --oneline --decorate --color"
|
|
|
|
alias amend="git add . && git commit --amend --no-edit"
|
|
|
|
alias commit="git add . && git commit -m"
|
|
|
|
alias diff="git diff"
|
|
|
|
alias force="git push --force"
|
2022-08-15 01:24:57 +02:00
|
|
|
alias nuke="git clean -dxf && git reset --hard"
|
2022-04-17 19:47:21 +02:00
|
|
|
alias pop="git stash pop"
|
|
|
|
alias pull="git pull"
|
2023-06-16 01:41:23 +02:00
|
|
|
alias repull="git pull --autostash --rebase"
|
2022-04-17 19:47:21 +02:00
|
|
|
alias push="git push"
|
|
|
|
alias resolve="git add . && git commit --no-edit"
|
|
|
|
alias stash="git stash -u"
|
|
|
|
alias unstage="git restore --staged ."
|
|
|
|
alias wip="commit wip"
|