Last active
July 12, 2020 14:55
-
-
Save phouverneyuff/88aaea8341890fc088c8eb5c3634d544 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
emulate sh -c 'source /etc/profile' | |
############################## NVM CONFIG START ############################## | |
# NVM bundle | |
export NVM_LAZY_LOAD=true | |
############################## COMPINIT CONFIG START ############################## | |
# it seems that oh-my-zsh already call for it | |
#autoload -Uz compinit | |
#for dump in ~/.zcompdump(N.mh+24); do | |
# compinit | |
#done | |
#compinit -C | |
############################## COMPINIT CONFIG END ############################## | |
############################## ANTIBODY CONFIG START ############################## | |
source <(antibody init) | |
# where is antibody keeping its stuff? | |
ANTIBODY_HOME="$(antibody home)" | |
# tell omz where it lives | |
export ZSH="$ANTIBODY_HOME"/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh | |
antibody bundle <<EOBUNDLES | |
# Guess what to install when running an unknown command. | |
denysdovhan/spaceship-prompt | |
robbyrussell/oh-my-zsh | |
robbyrussell/oh-my-zsh path:plugins/git | |
robbyrussell/oh-my-zsh path:plugins/git-extras | |
robbyrussell/oh-my-zsh path:plugins/git-flow | |
robbyrussell/oh-my-zsh path:plugins/pip | |
robbyrussell/oh-my-zsh path:plugins/command-not-found | |
robbyrussell/oh-my-zsh path:plugins/npm | |
robbyrussell/oh-my-zsh path:plugins/common-aliases | |
robbyrussell/oh-my-zsh path:plugins/react-native | |
zpm-zsh/autoenv | |
zsh-users/zsh-autosuggestions | |
zdharma/fast-syntax-highlighting | |
EOBUNDLES | |
SPACESHIP_CHAR_SYMBOL="λ " | |
# quit bugging me! | |
DISABLE_AUTO_UPDATE="true" | |
# Tab title | |
DISABLE_AUTO_TITLE="true" | |
function precmd () { | |
window_title="\033]0;${PWD##*/}\007" | |
echo -ne "$window_title" | |
} | |
#HISTFILE=~/.zsh_history | |
#HISTSIZE=10000 | |
#SAVEHIST=$HISTSIZ | |
# don't nice background tasks | |
setopt NO_BG_NICE | |
setopt NO_HUP | |
setopt NO_BEEP | |
# add timestamps to history | |
setopt EXTENDED_HISTORY | |
setopt PROMPT_SUBST | |
setopt CORRECT | |
setopt COMPLETE_IN_WORD | |
# adds history | |
setopt APPEND_HISTORY | |
# adds history incrementally and share it across sessions | |
setopt SHARE_HISTORY # share history between different instances of the shell | |
setopt INC_APPEND_HISTORY # save history entries as soon as they are entered | |
# don't record dupes in history | |
setopt HIST_IGNORE_ALL_DUPS | |
setopt HIST_REDUCE_BLANKS | |
setopt HIST_IGNORE_DUPS | |
setopt HIST_IGNORE_SPACE | |
setopt HIST_VERIFY | |
setopt HIST_EXPIRE_DUPS_FIRST | |
setopt hist_ignore_all_dups # remove older duplicate entries from history | |
#setopt auto_cd # cd by typing directory name if it's not a command | |
#setopt correct_all # autocorrect commands | |
setopt auto_list # automatically list choices on ambiguous completion | |
setopt auto_menu # automatically use menu completion | |
#setopt always_to_end # move cursor to end if word had one match | |
# fuzzy find: start to type | |
bindkey "$terminfo[kcuu1]" up-line-or-beginning-search | |
bindkey "$terminfo[kcud1]" down-line-or-beginning-search | |
bindkey "$terminfo[cuu1]" up-line-or-beginning-search | |
bindkey "$terminfo[cud1]" down-line-or-beginning-search | |
# backward and forward word with option+left/right | |
bindkey '^[^[[D' backward-word | |
bindkey '^[b' backward-word | |
bindkey '^[^[[C' forward-word | |
bindkey '^[f' forward-word | |
# to to the beggining/end of line with fn+left/right or home/end | |
bindkey "${terminfo[khome]}" beginning-of-line | |
bindkey '^[[H' beginning-of-line | |
bindkey "${terminfo[kend]}" end-of-line | |
bindkey '^[[F' end-of-line | |
# delete char with backspaces and delete | |
bindkey '^[[3~' delete-char | |
bindkey '^?' backward-delete-char | |
# delete word with ctrl+backspace | |
bindkey '^[[3;5~' backward-delete-word | |
# bindkey '^[[3~' backward-delete-word | |
############################## ANTIBODY CONFIG END ############################## | |
# Setup zsh-autosuggestions | |
#source $HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh | |
# Load custom aliases | |
#[[ -s "$HOME/.bash_aliases" ]] && source "$HOME/.bash_aliases" | |
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! | |
#export SDKMAN_DIR="/home/ph/.sdkman" | |
#[[ -s "/home/ph/.sdkman/bin/sdkman-init.sh" ]] && source "/home/ph/.sdkman/bin/sdkman-init.sh" | |
#alias ls="colorls" | |
export EDITOR='vim' | |
#export VISUAL='vim' | |
export VEDITOR='code' | |
export PATH=$PATH:$HOME/bin/:$HOME/.local/bin | |
export GOROOT=/usr/lib/go | |
export GOPATH=$HOME/projetos/go | |
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | |
export GPG_TTY=$(tty) | |
setxkbmap -option '' -option kpdl:dot | |
# RUBY GEM PATH | |
export PATH=$PATH:$(ruby -e 'puts File.join(Gem.user_dir, "bin")') | |
# FLUTTER PATH | |
export PATH="$PATH:/opt/flutter/bin" | |
# Create a new react app | |
react-app() { | |
npx create-react-app $1 | |
cd $1 | |
npm i -D eslint | |
npm i -D eslint-config-prettier eslint-plugin-prettier | |
npm i -D eslint-config-airbnb eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks | |
cp "${HOME}/.eslintrc.json" . | |
cp "${HOME}/.prettierrc" . | |
echo $1 > README.md | |
rm -rf yarn.lock | |
cd src | |
rm -f App.css App.test.js index.css logo.svg serviceWorker.js | |
mkdir components views | |
git add -A | |
git commit -m "Initial commit." | |
cd .. | |
clear | |
code . | |
} | |
export LSCOLORS='exfxcxdxbxegedabagacad' | |
export CLICOLOR=true | |
#export LC_ALL=en_US.utf8 | |
export LANG=en_US.utf8 | |
export LC_ADDRESS=en_US.utf8 | |
export LC_IDENTIFICATION=en_US.utf8 | |
export LC_MEASUREMENT=pt_BR.UTF-8 | |
export LC_MESSAGES=en_US.utf8 | |
export LC_MONETARY=en_US.utf8 | |
export LC_NAME=en_US.utf8 | |
export LC_NUMERIC=en_US.utf8 | |
export LC_PAPER=en_US.utf8 | |
export LC_TELEPHONE=en_US.utf8 | |
export LC_TIME=pt_BR.UTF-8 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment