Created
December 10, 2023 14:41
-
-
Save markarasev/5cfc7cea04dae7bead99fba1213e940d to your computer and use it in GitHub Desktop.
.profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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