Created
February 19, 2020 12:24
-
-
Save simonrenoult/8ab89bc60e2dcf816ffb05bb7623baa8 to your computer and use it in GitHub Desktop.
This file contains 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
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_THEME="avit" | |
HYPHEN_INSENSITIVE="true" | |
COMPLETION_WAITING_DOTS="true" | |
plugins=(autojump common-aliases docker extract httpie docker docker-compose kubectl) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
source $HOME/.profile | |
export MANPATH="/usr/local/man:$MANPATH" | |
export LANG=en_US.UTF-8 | |
export EDITOR="vim" | |
export ZSHRC="$HOME/.zshrc" | |
# stuff | |
alias upgrade="sudo -E apt update && sudo -E apt full-upgrade -y && sudo -E apt autoremove && upgrade_oh_my_zsh" | |
alias ccat="pygmentize -g" | |
alias k="kubectl" | |
alias lla="ls -la" | |
alias notes="subl $HOME/.notes" | |
# zshrc | |
alias zshrc="$EDITOR $ZSHRC" | |
alias zshrc-reload="source $ZSHRC" | |
alias zshrc-source=zshrc-reload | |
alias reload-zshrc=zshrc-reload | |
# git | |
alias gitCommands="alias|grep git" | |
alias commands=gitCommands | |
alias gitconfig="$EDITOR $HOME/.gitconfig" | |
alias gitrc=gitconfig | |
alias gitignore="$EDITOR $HOME/.gitignore" | |
alias melt="git add --all && git commit --all --no-edit --amend" | |
alias resetToMaster="git fetch --all --prune && git reset --hard origin/master" | |
alias undo="git reset --soft HEAD~" | |
alias rebaseOnMaster="git fetch --all --prune && git rebase origin/master" | |
alias renameCommit="git commit --amend" | |
alias push="git push origin HEAD --force-with-lease" | |
alias wip="git add --all && git commit --all --message='wip: undo me! (eg: \"git reset --soft HEAD~\")'" | |
alias showBranchesByDate="git for-each-ref --sort=-committerdate refs/heads/" | |
alias news="git --no-pager log --decorate --oneline origin/master..HEAD" | |
alias fixupAll="git add --all && git commit --fixup " | |
alias fixup="git commit --fixup " | |
alias squashAll="git fetch origin && git rebase --autosquash origin/master" | |
alias nukeModifications="git reset --hard && git clean -d --force" | |
alias commit="git commit" | |
alias commitAll="git add --all && git commit" | |
alias master="git checkout master && git reset --hard origin/master" | |
# docker | |
alias docker-clean='docker container prune --force' | |
alias docker-clean-images='docker image prune --force --all' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment