Skip to content

Instantly share code, notes, and snippets.

@eugene-babichenko
Last active December 3, 2019 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eugene-babichenko/a8937d2c1a2f8b94b382103c093c8170 to your computer and use it in GitHub Desktop.
Save eugene-babichenko/a8937d2c1a2f8b94b382103c093c8170 to your computer and use it in GitHub Desktop.
# generated by `thefuck --alias`
source $HOME/thefuck.sh
source $HOME/antigen.zsh
antigen use oh-my-zsh
antigen bundle cargo
antigen bundle colored-man-pages
antigen bundle docker
antigen bundle docker-compose
antigen bundle pip
antigen bundle git
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
antigen bundle zdharma/fast-syntax-highlighting
antigen bundle mafredri/zsh-async
antigen bundle sindresorhus/pure
antigen bundle marzocchi/zsh-notify
antigen apply
zstyle ':notify:*' command-complete-timeout 15
zstyle ':notify:*' always-notify-on-failure no
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=60"
function portainer() {
if [ "$(docker ps | grep portainer)" ]; then
docker stop portainer
fi
if [ "$(docker ps -a | grep portainer)" ]; then
docker rm portainer
fi
docker run -d -p 9000:9000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
--name portainer \
portainer/portainer
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment