Last active
September 18, 2023 13:40
-
-
Save XavierJece/790ab8da958285aab4ff3d1f22c8310b to your computer and use it in GitHub Desktop.
My personal aliases from zsh
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
alias ls='ls -la'c # colorize `ls` output | |
alias zshreload='source ~/.zshrc' # reload ZSH | |
alias shtop='sudo htop' # run `htop` with root rights | |
alias grep='grep --color=auto' # colorize `grep` output | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' | |
alias less='less -R' | |
alias g='git' | |
alias gs='gst' | |
alias rm='rm -i' # confirm removal | |
alias cp='cp -i' # confirm copy | |
alias mv='mv -i' # confirm move | |
alias cal='gcal --starting-day=1' # print simple calendar for current month | |
alias weather='curl v2.wttr.in' # print weather for current location (https://github.com/chubin/wttr.in) | |
alias afind="alias | grep" | |
alias gort="open https://app.rocketseat.com.br" | |
# navigation aliases | |
# Dasa | |
alias godasa="cd /home/$USER/Documents/Profissional/Dasa" | |
alias goauth="cd /home/$USER/Documents/Profissional/Dasa/00-Projetos/auth-service && nvm use" | |
alias gonav="cd /home/$USER/Documents/Profissional/Dasa/00-Projetos/nav && nvm use" | |
alias gonavlogin="cd /home/$USER/Documents/Profissional/Dasa/00-Projetos/nav-login-frontend && nvm use" | |
alias gopes="cd /home/$USER/Documents/Profissional/Dasa/00-Projetos/pes && nvm use" | |
alias gospe="cd /home/$USER/Documents/Profissional/Dasa/00-Projetos/telemedicine-specialties && nvm use" | |
alias goorg="cd /home/$USER/Documents/Profissional/Dasa/00-Projetos/organizations-service && nvm use" | |
alias gobff="cd /home/$USER/Documents/Profissional/Dasa/00-Projetos/nav-bff && nvm use" | |
alias gopoint="cd /home/$USER/Documents/Profissional/Dasa/00-Projetos/bot-point && nvm use" | |
alias gousers="cd /home/$USER/Documents/Profissional/Dasa/00-Projetos/nav-pro-users-api && nvm use" | |
# Lamia | |
alias golamia="cd /home/$USER/Documents/Estudando/UTFPR/00-LAMIA" | |
alias golamiaapi="cd /home/$USER/Documents/Estudando/UTFPR/00-LAMIA/site/brackend" | |
alias golamiafront="cd /home/$USER/Documents/Estudando/UTFPR/00-LAMIA/site/frontend" | |
# IPB | |
alias goipb="cd /home/$USER/Documents/Estudando/IPB" | |
alias gotese="cd /home/$USER/Documents/Estudando/IPB/tese" | |
alias goghd="cd /home/$USER/Documents/Estudando/IPB/tese/00-demos/green-health-dashboard && nvm use" | |
# 00-Especilizacoes | |
alias gods="cd /home/$USER/Documents/Estudando/00-Especilizacoes/design-system && nvm use" | |
alias goig="cd /home/$USER/Documents/Estudando/00-Especilizacoes/react-redux-zustand && nvm use" | |
alias gotab="cd /home/$USER/Documents/Estudando/00-Especilizacoes/clone-tabnews && nvm use" | |
alias goskill="cd /home/$USER/Documents/Estudando/00-Especilizacoes/alexa-skill && nvm use" | |
# server | |
alias shhlamia="ssh [email protected]" | |
# docker aliases | |
alias d="docker" | |
alias up="docker-compose up" | |
alias dps='docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}"' | |
alias dpsa='docker ps -a --format "table {{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}"' | |
alias deval='eval "$(docker-machine env default)"' | |
alias devaln1='eval "$(docker-machine env node1)"' | |
alias dunset='unset DOCKER_TLS_VERIFY; unset DOCKER_CERT_PATH; unset DOCKER_MACHINE_NAME; unset DOCKER_HOST' | |
alias drac='docker rm -f $(docker ps -a -q)' | |
alias drd='docker rmi -f $(docker images -q --filter "dangling=true");docker volume rm $(docker volume ls -qf "dangling=true");' | |
alias dsac='docker stop $(docker ps -aq)' | |
alias dkill='docker kill $(docker ps -q)' | |
# other alises | |
alias na="nautilus" | |
#YARN and NPM aliases | |
alias yd="yarn docker" | |
alias yt="yarn test" | |
alias ytc="yarn test:cov" | |
alias npmd="npm run dev" | |
alias npmb="npm run build" | |
alias npmt="npm run dev" | |
alias npmtc="npm run test:cov" | |
# remote-touchpad | |
alias rt="remote-touchpad" | |
# Soluções paliativas do bug | |
alias google-chrome="google-chrome --no-sandbox" | |
alias edge="microsoft-edge-stable --no-sandbox" | |
alias insomnia="insomnia --no-sandbox" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment