Skip to content

Instantly share code, notes, and snippets.

@markarasev
Created December 10, 2023 14:41
Show Gist options
  • Save markarasev/5cfc7cea04dae7bead99fba1213e940d to your computer and use it in GitHub Desktop.
Save markarasev/5cfc7cea04dae7bead99fba1213e940d to your computer and use it in GitHub Desktop.
.profile
alias ls='ls -GFh'
# adds 'docker pls' command, stops all containers
docker() {
if [[ $@ == "pls" ]]; then
command docker stop $(docker ps -q)
else
command docker "$@"
fi
}
# fixes erroneous 'git git <command>` prompts
git() {
if [[ $1 == "git" ]]; then
shift
command git "$@"
else
command git "$@"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment