Last active
March 7, 2022 17:12
-
-
Save romulomourao/487e0fb4d361e66a524c363110821cf5 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
#git | |
alias gstu='git stash -u' | |
alias gsync='gitpr development -b master' | |
alias gprd='gitpr development' | |
alias gprm='gitpr master' | |
alias gtlog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias github="google-chrome https://github.com/qcx/odin/pulls" | |
#apt | |
alias update='sudo apt update -y' | |
alias upgrade='sudo apt upgrade -y' | |
alias install='sudo apt install -y' | |
#External IP address | |
alias ipe='curl ipinfo.io/ip' | |
# Speedtest https://www.speedtest.net/apps/cli | |
alias speed='speedtest' | |
# Process by name | |
alias psg='ps auwx | grep' | |
alias rs="rails s -p 3000" | |
# clock NZ | |
alias clock-nz="TZ='Pacific/Auckland' tty-clock -c -f '%a, %d %b %Y'" | |
# imposto de renda - entrar na pasta com o .jar | |
alias irpf="java -Xms128M -Xmx512M -jar irpf.jar" | |
#translate to pt | |
alias trans="trans :pt" | |
#find PID by port | |
alias port="sudo lsof -i -P -n | grep" | |
# yarn | |
alias ys="yarn start" | |
# rails | |
alias rsp="rails s -p" |
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
local ret_status="%(?:%{$fg_bold[green]%}➜:%{$fg_bold[red]%}➜ )" | |
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info) ' | |
RPS1='%{$fg[red]%} $(ruby -v | egrep -o "([0-9]{1,}\.)+[0-9]{1,}") %{$fg[green]%} $(node -v) %{$reset_color%} $EPS1' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[green]%}git:%{$fg_bold[blue]%}(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗ %{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" | |
ZSH_THEME_RVM_PROMPT_PREFIX="%{$fg[red]%} " | |
ZSH_THEME_RVM_PROMPT_SUFFIX="%{$reset_color%}" |
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use:
~/.oh-my-zsh/themes
ZSH_THEME="mourao"
in~/.zshrc