Created
July 13, 2021 14:05
-
-
Save snewcomer/cdb5d3ca186062fd2e3a2ceb985faf26 to your computer and use it in GitHub Desktop.
basic-zsh.txt
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
. $HOME/.asdf/asdf.sh | |
export VOLTA_HOME="$HOME/.volta" | |
export PATH="$VOLTA_HOME/bin:$PATH" | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' | |
alias .....='cd ../../../..' | |
alias ls='ls' | |
# Empty the trash folder that is created when you delete things as root | |
alias root_trash='sudo bash -c "exec rm -r /root/.local/share/Trash/{files,info}/*"' | |
alias ll='ls -lh' | |
alias la='ls -la' | |
alias l='ls' | |
alias lls='ll -Sr' | |
alias ping='ping -c 5' | |
alias startdb='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start' | |
alias stopdb='pg_ctl -D /usr/local/var/postgres stop -s -m fast' | |
alias gs='git status' | |
alias gd='git diff' | |
alias gl='git log' | |
alias glp='git log -p' | |
alias glf='git log --follow' | |
alias gca='git commit --amend' | |
alias gc='git commit -m' | |
alias gca='git commit --amend' | |
alias goc="git checkout" | |
alias gr='git reset HEAD~' | |
alias grem='git remote -v' | |
alias push='git push origin master' | |
alias gpush='git push' | |
alias list-branches="git branch --sort=committerdate" | |
alias pushf='git push --force-with-lease' | |
alias pull='git pull --rebase' | |
alias ts='tig status' | |
alias c='clear' | |
alias nombom="rm -rf node_modules && npm install" | |
alias es='ember s' | |
alias em='ember s --environment=mirage-development' | |
alias et='ember t -s' | |
alias etf='ember t -s -f' | |
alias ets='ember t -s -f scott' | |
alias ni='npm install' | |
alias mixclean='mix deps.clean --unused --unlock' | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p' | |
} | |
COLOR_DEF='%f' | |
COLOR_DIR='%F{197}' | |
COLOR_GIT='%F{39}' | |
NEWLINE=$'\n' | |
setopt PROMPT_SUBST | |
export PROMPT='${COLOR_DIR}%d ${COLOR_GIT}$(parse_git_branch)${COLOR_DEF}${NEWLINE}%% ' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment