Skip to content

Instantly share code, notes, and snippets.

@ajdinmore
Last active October 1, 2024 12:10
Show Gist options
  • Save ajdinmore/70e92814cac7240d336c893c72065524 to your computer and use it in GitHub Desktop.
Save ajdinmore/70e92814cac7240d336c893c72065524 to your computer and use it in GitHub Desktop.
Bash Aliases
#/bin/bash
function kt {
(&>/dev/null kate "$@" & exit)
}
function dolp {
(&>/dev/null dolphin "${@:-.}" & exit)
}
alias up='docker compose up'
alias dstopall='docker ps --format="{{.Names}}" | xargs docker stop'
alias drun='docker run --rm -itv $(pwd):/app --workdir /app'
alias drunme='drun -u $(id -u):$(id -g)'
alias composer='drunme -v ~/.composer:/composer ajdinmore/php:8.3-dev composer'
alias php='drunme ajdinmore/php:8.3-dev php'
#alias npm='drunme node npm'
#alias npx='drunme node npx'
alias flush-dns='sudo resolvectl flush-caches'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment