###############################
# ALIASES #
###############################
# UNIX
alias zshc='code ~/.zshrc'
alias bashc='code ~/.bashrc'
alias ll='ls -laF'
alias lf='ls -laF'
alias exp='explorer.exe .'
alias cc='clear'
alias vc="code ."
# DEV
alias www="cd ~/www && l"
alias dev="cd ~/www && l"
# TEST
alias testc="yarn test --coverage"
testw () {
currentPath=$(pwd)
yarn jest --coverage --watch $1/$2.spec.tsx --collectCoverageFrom=$1/$2.tsx
}
# DOCKER
alias dcc="docker-compose up -d"
alias dcs="docker-compose stop"
alias dccu="docker-compose up"
alias dcdown="docker-compose down"
alias dckill="docker system prune -a"
alias dcl="docker container list"
alias dcla="docker container list -a"
alias dip="docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'"
alias dps='docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Status}}" | (read -r; printf "%s\n" "$REPLY"; sort -k 2 )'
alias dpss='docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Status}}" | (read -r; printf "%s\n" "$REPLY"; sort -k 4 )'
alias dpsp='docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.Ports}}" | (read -r; printf "%s\n" "$REPLY"; sort -k 3 )'
alias dil="docker image list"
alias dila="docker image list -a"
alias dsall="docker stop $(docker ps -a -q)"
alias dnl="docker network list"
alias dndown="docker network rm $(docker network ls | awk {'print $1'})"
###############################
# DEFAULT #
###############################
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="spaceship"
SPACESHIP_PROMPT_ORDER=(
user # Username section
dir # Current directory section
host # Hostname section
time # Time stamps section
git # Git section (git_branch + git_status)
hg # Mercurial section (hg_branch + hg_status)
exec_time # Execution time
line_sep # Line break
vi_mode # Vi-mode indicator
jobs # Background jobs indicator
exit_code # Exit code section
char # Prompt character
)
SPACESHIP_USER_SHOW=always
SPACESHIP_USER_COLOR=blue
SPACESHIP_TIME_SHOW=true
SPACESHIP_TIME_COLOR=green
SPACESHIP_PROMPT_ADD_NEWLINE=false
SPACESHIP_CHAR_SYMBOL="❯"
SPACESHIP_CHAR_SUFFIX=" "
plugins=(git ssh-agent asdf)
source $ZSH/oh-my-zsh.sh
### ZINIT
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
print -P "%F{33} %F{34}Installation successful.%f%b" || \
print -P "%F{160} The clone has failed.%f%b"
fi
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
zinit light zdharma-continuum/fast-syntax-highlighting
zinit light zsh-users/zsh-autosuggestions
zinit light zsh-users/zsh-completions
autoload -U add-zsh-hook
add-zsh-hook chpwd
clear
Last active
March 9, 2024 17:20
-
-
Save lipex360x/cfe57f9cbef90ed7e06c2b0817a82909 to your computer and use it in GitHub Desktop.
Oh My ZSH settings: $ code ~/.zshrc
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
############################### | |
# ALIASES # | |
############################### | |
# LINUX BASH | |
alias zshc='code ~/.zshrc' | |
alias zshs='source ~/.zshrc' | |
alias bashc='code ~/.bashrc' | |
alias hyperc='code ~/.hyper.js' | |
alias calc='open -n -a Calculator' | |
alias ll='ls -laF' | |
alias exp='explorer.exe .' | |
alias cc='clear' | |
alias vc="code ." | |
# alias ls='ls -X -h --group-directories-first --color' | |
alias ip='ip -br -c addr show | grep eth0' | |
alias py='python3' | |
# DEV | |
alias www="cd ~/www" | |
alias dev="cd ~/www && l" | |
alias dev="cd ~/www && l" | |
alias back="cd ~/www/avenue/ms8/backend && l" | |
alias front="cd ~/www/avenue/ms8/frontend && l" | |
alias ncup='npx npm-check-updates -i --dep=prod,dev --format group' | |
alias gitac='git config user.email "felipe.bambirra@avenuecode.com"' | |
alias gitlp='git config user.email "lipex360@gmail.com"' | |
# DOCKER | |
alias dcc="docker-compose up -d" | |
alias dcs="docker-compose stop" | |
alias dccu="docker-compose up" | |
alias dcdown="docker-compose down" | |
alias dckill="docker system prune -a" | |
alias dcl="sudo docker container list" | |
alias dcla="sudo docker container list -a" | |
alias dip="sudo docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'" | |
alias dps='sudo docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Status}}" | (read -r; printf "%s\n" "$REPLY"; sort -k 2 )' | |
alias dpss='sudo docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Status}}" | (read -r; printf "%s\n" "$REPLY"; sort -k 4 )' | |
alias dpsp='sudo docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.Ports}}" | (read -r; printf "%s\n" "$REPLY"; sort -k 3 )' | |
alias dil="sudo docker image list" | |
alias dila="sudo docker image list -a" | |
alias dsall="sudo docker stop $(sudo docker ps -a -q)" | |
alias dnl="sudo docker network list" | |
alias dndown="sudo docker network rm $(sudo docker network ls | awk {'print $1'})" | |
alias dvl="sudo docker volume list" | |
alias dvd="sudo docker volume rm" | |
### APPWRITE | |
alias ap="appwrite" | |
############################### | |
# DEFAULT # | |
############################### | |
export ZSH="$HOME/.oh-my-zsh" | |
ZSH_THEME="spaceship" | |
SPACESHIP_PROMPT_ORDER=( | |
user # Username section | |
dir # Current directory section | |
host # Hostname section | |
time # Time stamps section | |
git # Git section (git_branch + git_status) | |
hg # Mercurial section (hg_branch + hg_status) | |
exec_time # Execution time | |
line_sep # Line break | |
#vi_mode # Vi-mode indicator | |
jobs # Background jobs indicator | |
exit_code # Exit code section | |
char # Prompt character | |
) | |
SPACESHIP_USER_SHOW=always | |
SPACESHIP_USER_COLOR=blue | |
SPACESHIP_TIME_SHOW=true | |
SPACESHIP_TIME_COLOR=green | |
SPACESHIP_PROMPT_ADD_NEWLINE=false | |
SPACESHIP_CHAR_SYMBOL="❯" | |
SPACESHIP_CHAR_SUFFIX=" " | |
plugins=(git ssh-agent asdf) | |
source $ZSH/oh-my-zsh.sh | |
### ZINIT | |
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then | |
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f" | |
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit" | |
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \ | |
print -P "%F{33} %F{34}Installation successful.%f%b" || \ | |
print -P "%F{160} The clone has failed.%f%b" | |
fi | |
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh" | |
autoload -Uz _zinit | |
(( ${+_comps} )) && _comps[zinit]=_zinit | |
zinit light-mode for \ | |
zdharma-continuum/z-a-rust \ | |
zdharma-continuum/z-a-patch-dl \ | |
zdharma-continuum/z-a-as-monitor \ | |
zdharma-continuum/z-a-bin-gem-node | |
zinit light zdharma-continuum/fast-syntax-highlighting | |
zinit light zsh-users/zsh-autosuggestions | |
zinit light zsh-users/zsh-completions | |
autoload -U add-zsh-hook | |
# add-zsh-hook chpwd | |
# sudo service docker start | |
# bun completions | |
[ -s "/Users/felipe/.bun/_bun" ] && source "/Users/felipe/.bun/_bun" | |
# bun | |
export BUN_INSTALL="$HOME/.bun" | |
export PATH="$BUN_INSTALL/bin:$PATH" | |
# Herd injected PHP binary. | |
export PATH="/Users/felipe/Library/Application Support/Herd/bin/":$PATH | |
# Herd injected PHP 8.2 configuration. | |
export HERD_PHP_82_INI_SCAN_DIR="/Users/felipe/Library/Application Support/Herd/config/php/82/" | |
PATH=~/.console-ninja/.bin:$PATH |
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
# TCS ALIAS | |
alias tcs="cd ~/www/tcs && ll" | |
alias controle="cd ~/www/tcs/pclocal/back-end/controle" | |
alias controlef="cd ~/www/tcs/pclocal/front-end" | |
alias bot="cd ~/www/tcs/pclocal/back-end/bot" | |
alias servidorback="cd ~/www/tcs/servidor/back-end" | |
alias servidorfront="cd ~/www/tcs/servidor/front-end" | |
alias plc="cd ~/www/tcs/plc-sim && dcc" | |
# THINCLIENT ALIAS | |
alias code="code --user-data-dir=~/root " | |
alias pguser="sudo -i -u postgres && psql" | |
alias firefox="su -c 'DISPLAY=:0 firefox' -$user" | |
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
############################### | |
# ALIASES # | |
############################### | |
alias ncup='npx npm-check-updates -i --dep=prod,dev --format group -p yarn' | |
# LINUX BASH | |
alias zshc='code ~/.zshrc' | |
alias bashc='code ~/.bashrc' | |
alias ll='ls -laF' | |
alias exp='explorer.exe .' | |
alias cc='clear' | |
alias vc="code ." | |
# alias ls='ls -X -h --group-directories-first --color' | |
alias ip='ip -br -c addr show | grep eth0' | |
alias py='python3' | |
alias gtm='git add . && git commit -m $1' | |
alias gitc="git init && git config user.email \"lipex360@gmail.com\" && git config user.name \"Felipe Bambirra\"" | |
# DEV | |
alias www="cd ~/www" | |
alias dev="cd ~/www && l" | |
alias windev='cd /mnt/c/www && l' | |
# DOCKER | |
alias dcc="docker-compose up -d" | |
alias dcs="docker-compose stop" | |
alias dccu="docker-compose up" | |
alias dcdown="docker-compose down" | |
alias dckill="docker system prune -a" | |
alias dcvol="docker volume rm $(docker volume ls -q)" | |
alias dcl="docker container list" | |
alias dcla="docker container list -a" | |
alias dip="docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'" | |
alias dps='docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Status}}" | (read -r; printf "%s\n" "$REPLY"; sort -k 2 )' | |
alias dpss='docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Status}}" | (read -r; printf "%s\n" "$REPLY"; sort -k 4 )' | |
alias dpsp='docker ps -a --format "table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.Ports}}" | (read -r; printf "%s\n" "$REPLY"; sort -k 3 )' | |
alias dil="docker image list" | |
alias dila="docker image list -a" | |
alias dsall="docker stop $(docker ps -a -q)" | |
alias dnl="docker network list" | |
alias dndown="docker network rm $(docker network ls | awk {'print $1'})" | |
alias back="cd ~/www/avenue/ms8/backend && l" | |
alias front="cd ~/www/avenue/ms8/frontend && l" | |
############################### | |
# DEFAULT # | |
############################### | |
export ZSH="$HOME/.oh-my-zsh" | |
# export DOCKER_DEFAULT_PLATFORM=linux/amd64 | |
ZSH_THEME="spaceship" | |
SPACESHIP_PROMPT_ORDER=( | |
user # Username section | |
dir # Current directory section | |
host # Hostname section | |
time # Time stamps section | |
git # Git section (git_branch + git_status) | |
hg # Mercurial section (hg_branch + hg_status) | |
exec_time # Execution time | |
line_sep # Line break | |
#vi_mode # Vi-mode indicator | |
jobs # Background jobs indicator | |
exit_code # Exit code section | |
char # Prompt character | |
) | |
SPACESHIP_USER_SHOW=always | |
SPACESHIP_USER_COLOR=blue | |
SPACESHIP_TIME_SHOW=true | |
SPACESHIP_TIME_COLOR=green | |
SPACESHIP_PROMPT_ADD_NEWLINE=false | |
SPACESHIP_CHAR_SYMBOL="❯" | |
SPACESHIP_CHAR_SUFFIX=" " | |
plugins=(git ssh-agent asdf) | |
source $ZSH/oh-my-zsh.sh | |
### ZINIT | |
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then | |
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f" | |
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit" | |
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \ | |
print -P "%F{33} %F{34}Installation successful.%f%b" || \ | |
print -P "%F{160} The clone has failed.%f%b" | |
fi | |
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh" | |
autoload -Uz _zinit | |
(( ${+_comps} )) && _comps[zinit]=_zinit | |
zinit light-mode for \ | |
zdharma-continuum/z-a-rust \ | |
zdharma-continuum/z-a-patch-dl \ | |
zdharma-continuum/z-a-as-monitor \ | |
zdharma-continuum/z-a-bin-gem-node | |
zinit light zdharma-continuum/fast-syntax-highlighting | |
zinit light zsh-users/zsh-autosuggestions | |
zinit light zsh-users/zsh-completions | |
autoload -U add-zsh-hook | |
# add-zsh-hook chpwd | |
# service docker start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment