Last active
December 10, 2022 21:29
-
-
Save DIEGOHORVATTI/2acc871e1f2fd70dcee7a512031e83e1 to your computer and use it in GitHub Desktop.
minha config do zsh
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
#date | |
# Path to your oh-my-zsh installation. | |
export PATH=$PATH:$GOPATH/bin | |
export ZSH="$HOME/.oh-my-zsh" | |
export TERM="xterm-256color" | |
fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src | |
#colors | |
alias ls="colorls --group-directories-first --almost-all" | |
alias la="colorls --group-directories-first --almost-all --long" | |
alias lh="colorls --group-directories-first --almost-all --dirs --tree=1" | |
alias lf="colorls --group-directories-first --almost-all --files --tree=1" | |
alias lt="colorls --group-directories-first --almost-all --tree=1" | |
alias lss="colorls --group-directories-first --almost-all" | |
#tradutor | |
alias en="trans en:pt" | |
alias pt="trans pt:en" | |
#ascii | |
alias ascii="jp2a" | |
#programas | |
alias cam="~/Dev/git/simple_camera_linux_e_windons/camera.py" | |
alias subl="/home/div/programas/sublime_text/sublime_text" | |
alias NT="/home/div/programas/speedtest-cli" | |
alias wallpaper="xwinwrap -ni -o 1 -fs -s -st -sp -b -nf -- mplayer -nosound -loop 0 -saturation 100 -brightness -20 -contrast 50 -wid WID" | |
alias list="bash $HOME/programas/agenda/lista.sh" | |
alias runc="$HOME/Dev/git/run/runc.sh" | |
alias runjava="$HOME/Dev/git/run/runjava.sh" | |
alias runcpp="$HOME/Dev/git/run/runcpp.sh" | |
alias conda="/opt/miniconda3/bin/conda" | |
#pré config | |
alias eslint="yarn add eslint@latest @babel/eslint-parser @babel/core -D && wget https://gist.githubusercontent.com/DIEGOHORVATTI/9c78d46b8a97e0d0c12dc1222d280fe8/raw/f7dd3dc05bb6f6ba91aac24d2abcddfa0ce29e23/.eslintrc.json && cat .eslintrc.json" | |
alias inity="mkdir 16_node_terminal && cd $_ && npm init -y && eslint && touch ./index.js" | |
alias kwai="cowsay eu amo o Div, vamos fazer secsu'?'" | |
alias S="sudo" | |
alias A="sudo pacman -Syyu && yay -Syyu && ascii $HOME/Imagens/emots/mikey.png" | |
alias n="screenfetch" | |
alias h="history | grep -i" | |
alias copy="xclip -selection clipboard" | |
alias I="sudo pacman -S" | |
alias R="sudo apt remove --purge --autoremove -y" | |
alias zz="sudo nano ~/.zshrc" | |
alias div="npx diegohorvatti" | |
alias con="conky -c" | |
#alias | |
alias remove="rm -rf" | |
alias tt="touch" | |
alias mk="mkdir" | |
alias sonido="~/Dev/temp/bucklespring/buckle" | |
alias ifc="node ~/programas/status_discord/index.js" | |
#platformio | |
alias pio-rem="pio run -t clean" | |
alias pio-upp="pio run -t upload" | |
alias pio-run="pio run" | |
#--pomodoro | |
alias pomodoro="~/Dev/git/pomodoro-shellscript/pomodoro.sh" | |
#--precessos | |
alias L8880="php -S localhost:8880" | |
alias YD="yarn run dev" | |
alias browser="exo-open --launch WebBrowser" | |
#-navegadores-------- | |
alias github="browser https://github.com/" | |
alias google="browser www.google.com/search\?q\=" | |
alias spotify="browser https://open.spotify.com/search/" | |
alias youtube="browser https://www.youtube.com/results\?search_query\=" | |
alias wiki="browser pt.wikipedia.org/wiki/" | |
alias codpen="browser https://codepen.io/search/pens\?q\=" | |
alias livro="browser https://doku.pub/search/" | |
alias flat="browser https://flathub.org/apps/search/" | |
#---- | |
alias diff="diff - -color = auto" | |
alias porn-get="sudo apt-get" | |
alias recolor="/home/div/programas/recolor.sh" | |
alias converter="/home/div/programas/converter.sh" | |
#-------------git | |
alias git-tools="bash /home/div/Dev/git/simple_push/push_git.sh" | |
alias gs="git status" | |
alias gc="git commit -m" | |
alias gca="git commit -am" | |
alias ga="git add" | |
alias gaa="git add ." | |
alias gck="git checkout" | |
alias git-pus="git push -u origin main" | |
#-----monitor | |
alias B="xrandr --output eDP-1 --brightness" | |
#-------programas | |
alias etcher="sudo /home/div/programas/Etcher.AppImage" | |
alias whatsapp="/home/div/programas/whatsapp_api.sh" | |
#clean system ----------------- | |
alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' | |
alias cleancach='sudo pacman -Scc' | |
alias fullclean="cleanup; cleancach;" | |
#. ~/.oh-my-zsh/custom/themes/powerlevel9k/powerlevel9k.zsh-theme | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
#command_execution_time | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=() | |
#POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status disk_usage battery vcs time) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status dir vcs os_icon) | |
POWERLEVEL9K_MODE='nerdfont-complete' | |
ZLE_RPROMPT_INDENT=0 | |
#POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
#POWERLEVEL9K_RPROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR=$' \uE0B1' | |
POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=true | |
POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=1 | |
POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=3 | |
POWERLEVEL9K_TIME_FORMAT="%D{%H:%M:%S}" | |
#POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="\u256D \n" | |
#POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="\u2570 → " | |
POWERLEVEL9K_VCS_CLEAN_FOREGROUND='white' | |
POWERLEVEL9K_VCS_CLEAN_BACKGROUND='black' | |
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND='white' | |
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND='green' | |
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND='black' | |
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND='cyan' | |
POWERLEVEL9K_VI_MODE_INSERT_FOREGROUND='black' | |
POWERLEVEL9K_VI_MODE_INSERT_BACKGROUND='green' | |
POWERLEVEL9K_VI_MODE_NORMAL_FOREGROUND='black' | |
POWERLEVEL9K_VI_MODE_NORMAL_BACKGROUND='red' | |
POWERLEVEL9K_DIR_BACKGROUND='green' | |
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND='green' | |
POWERLEVEL9K_DIR_HOME_BACKGROUND='green' | |
POWERLEVEL9K_DIR_ETC_BACKGROUND='green' | |
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND='green' | |
POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND='green' | |
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="black" | |
POWERLEVEL9K_DIR_HOME_FOREGROUND="black" | |
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="black" | |
POWERLEVEL9K_CUSTOM_PID='echo -e "\uf258 $$ \uf258 `date +%D` \uf168"' | |
POWERLEVEL9K_CUSTOM_PID_BACKGROUND="green" | |
POWERLEVEL9K_CUSTOM_PID_FOREGROUND="black" | |
POWERLEVEL9K_CUSTOM_NEWLINE="print '\n'" | |
POWERLEVEL9K_CUSTOM_NEWLINE_BACKGROUND="green" | |
POWERLEVEL9K_CUSTOM_NEWLINE_FOREGROUND="white" | |
POWERLEVEL9K_CUSTOM_TTY="tty" | |
POWERLEVEL9K_CUSTOM_TTY_BACKGROUND="purple" | |
POWERLEVEL9K_CUSTOM_TTY_FOREGROUND="white" | |
milliamps(){ | |
amps="$(ioreg -rc AppleSmartBattery | grep CurrentCapacity | awk '{printf "%s mAh\n", $3}')" | |
echo -e "$amps \uf168" | |
} | |
POWERLEVEL9K_CUSTOM_BATT="milliamps" | |
POWERLEVEL9K_CUSTOM_BATT_BACKGROUND="red" | |
POWERLEVEL9K_CUSTOM_BATT_FOREGROUND="black" | |
plugins=( | |
zsh-completions | |
git | |
dnf | |
fzf | |
zsh-autosuggestions | |
zsh-syntax-highlighting | |
npm | |
wakatime | |
zsh-wakatime | |
) | |
source $ZSH/oh-my-zsh.sh | |
# >>> conda initialize >>> | |
# !! Contents within this block are managed by 'conda init' !! | |
__conda_setup="$('$HOME/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" | |
if [ $? -eq 0 ]; then | |
eval "$__conda_setup" | |
else | |
if [ -f "/home/div/miniconda3/etc/profile.d/conda.sh" ]; then | |
. "$HOME/miniconda3/etc/profile.d/conda.sh" | |
else | |
export PATH="$HOME/miniconda3/bin:$PATH" | |
fi | |
fi | |
unset __conda_setup | |
# <<< conda initialize <<< |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment