Last active
March 26, 2021 22:38
-
-
Save vitornogueira/c6dd74b0792eae24ed756f1aa6872d0e to your computer and use it in GitHub Desktop.
.dotfiles
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
[user] | |
email = vnweb.contato@gmail.com | |
name = Vitor Nogueira | |
[core] | |
editor = vim | |
[alias] | |
s = status | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
aa = add . | |
who = shortlog -sn | |
dsf = "!git diff --color $@ | diff-so-fancy" | |
branches = for-each-ref --sort='-authordate:iso8601' --format=' %(authordate:relative)%09%(refname:short)' refs/heads | |
[push] | |
default = simple | |
[color] | |
branch = auto | |
diff = auto | |
status = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
[color "status"] | |
added = green | |
changed = yellow | |
untracked = cyan |
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
# set Zsh as your default Tmux shell | |
# set-option -g default-shell /bin/fish | |
# set-option -g default-command /bin/fish | |
set -g default-shell /bin/zsh | |
# Start windows and panes at 1, not 0 | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set-option -g status-position top | |
set-option -g repeat-time 0 | |
# Tmux should be pretty, we need 256 color for that | |
set -g default-terminal "screen-256color" | |
# set -g default-terminal "xterm" | |
# Getting interesting now, we use the vertical and horizontal | |
# symbols to split the screen | |
bind | split-window -h | |
bind - split-window -v | |
# Tmux uses a 'control key', let's set it to 'Ctrl-a' | |
# Reason: 'Ctrl-a' is easier to reach than 'Ctrl-b' | |
set -g prefix C-a | |
unbind C-b | |
# Commands | |
bind-key x kill-pane | |
# Removes ESC delay | |
set -sg escape-time 0 | |
# caiogondim/maglev \ | |
# List of plugins | |
set -g @tpm_plugins ' \ | |
jimeh/tmux-themepack \ | |
tmux-plugins/tpm \ | |
tmux-plugins/tmux-sensible \ | |
tmux-plugins/tmux-resurrect \ | |
tmux-plugins/tmux-continuum \ | |
tmux-plugins/tmux-yank \ | |
tmux-plugins/tmux-pain-control \ | |
tmux-plugins/tmux-copycat \ | |
tmux-plugins/tmux-open \ | |
tmux-plugins/tmux-battery \ | |
tmux-plugins/tmux-cpu \ | |
' | |
# set -g @themepack 'powerline/double/magenta' | |
set -g @plugin 'dracula/tmux' | |
set -g @dracula-show-fahrenheit false | |
set -g @dracula-show-powerline true | |
set -g @dracula-show-timezone false | |
set -g @dracula-day-month true | |
set -g @dracula-show-network false | |
set -g @dracula-show-location false | |
# Initialize TMUX plugin manager | |
run '~/.tmux/plugins/tpm/tpm' |
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
if has('vim_starting') | |
set nocompatible " Be iMproved | |
endif | |
let vimplug_exists=expand('~/.vim/autoload/plug.vim') | |
let g:vim_bootstrap_langs = "html,javascript,ruby" | |
let g:vim_bootstrap_editor = "vim" " nvim or vim | |
if !filereadable(vimplug_exists) | |
if !executable("curl") | |
echoerr "You have to install curl or first install vim-plug yourself!" | |
execute "q!" | |
endif | |
echo "Installing Vim-Plug..." | |
echo "" | |
silent !\curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
let g:not_finish_vimplug = "yes" | |
autocmd VimEnter * PlugInstall | |
endif | |
" Required: | |
call plug#begin(expand('~/.vim/plugged')) | |
"***************************************************************************** | |
"" Plug install packages | |
"***************************************************************************** | |
Plug 'w0rp/ale' | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'editorconfig/editorconfig-vim' | |
Plug 'mattn/emmet-vim' | |
Plug 'Yggdroot/indentLine' | |
Plug 'scrooloose/nerdtree' | |
Plug 'majutsushi/tagbar' | |
Plug 'vim-airline/vim-airline' | |
Plug 'tpope/vim-commentary' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'jistr/vim-nerdtree-tabs' | |
Plug 'tpope/vim-surround' | |
Plug 'posva/vim-vue' | |
Plug 'dag/vim-fish' | |
Plug 'dracula/vim', { 'as': 'dracula' } | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'tpope/vim-endwise' | |
Plug 'tpope/vim-fugitive' | |
Plug 'bronson/vim-trailing-whitespace' | |
Plug 'scrooloose/syntastic' | |
Plug 'sheerun/vim-polyglot' | |
"" HTML Bundle | |
Plug 'hail2u/vim-css3-syntax' | |
Plug 'gorodinskiy/vim-coloresque' | |
"" Javascript Bundle | |
Plug 'jelera/vim-javascript-syntax' | |
call plug#end() | |
syntax on " syntax highlighting | |
"color dracula | |
packadd! dracula_pro | |
let g:dracula_colorterm = 0 | |
colorscheme dracula_pro | |
filetype plugin on | |
filetype indent on " load filetype-specific indent fil | |
set encoding=utf8 | |
set tabstop=2 " number of visual spaces per TAB | |
set softtabstop=2 " number of spaces in tab | |
set scrolloff=3 | |
set expandtab " tabs are spaces | |
set cursorline " highlight current line | |
set cursorcolumn " highlight current column | |
set ruler | |
set showcmd " show command in bottom bar | |
set number " show line numbers | |
set wildmenu " visual autocomplete for command menu | |
set showmatch " highlight matching [{()}] | |
set incsearch " search as characters are entered | |
set hlsearch " highlight matches | |
set ignorecase | |
set smartcase | |
set lazyredraw | |
set bomb | |
set binary | |
set ttyfast | |
"" Map leader to , | |
let mapleader=',' | |
"" Enable hidden buffers | |
set hidden | |
"" Directories for swp files | |
set nobackup | |
set noswapfile | |
" When opening a new line and no filetype-specific indenting is enabled, keep | |
" the same indent as the line you're currently on. Useful for READMEs, etc. | |
set autoindent | |
" Use visual bell instead of beeping when doing something wrong | |
set visualbell | |
" Disable the blinking cursor. | |
set gcr=a:blinkon0 | |
set scrolloff=3 | |
"***************" | |
" Abbreviations " | |
"***************" | |
" no one is really happy until you have this shortcuts | |
cnoreabbrev W! w! | |
cnoreabbrev Q! q! | |
cnoreabbrev Qall! qall! | |
cnoreabbrev Wq wq | |
cnoreabbrev Wa wa | |
cnoreabbrev wQ wq | |
cnoreabbrev WQ wq | |
cnoreabbrev W w | |
cnoreabbrev Q q | |
cnoreabbrev Qall qall | |
" syntastic | |
let g:syntastic_always_populate_loc_list=1 | |
let g:syntastic_error_symbol='✗' | |
let g:syntastic_warning_symbol='⚠' | |
let g:syntastic_style_error_symbol = '✗' | |
let g:syntastic_style_warning_symbol = '⚠' | |
let g:syntastic_auto_loc_list=1 | |
let g:syntastic_aggregate_errors = 1 | |
let g:javascript_enable_domhtmlcss = 1 | |
" Ignore some directories | |
set wildignore+=**/node_modules,**/bower_components,**/tmp,**/vendor,**/git | |
" vim airline | |
let g:airline_powerline_fonts = 1 | |
" toggle nerdtree | |
nmap <C-k><C-b> :NERDTreeToggle<CR> | |
nmap <silent> <C-L> :nohlsearch<CR> | |
map <C-j> <C-v><CR> | |
map <Leader>l <C-w><C-w> | |
map <F3> zf | |
map <F4> zo | |
" emmet | |
imap <expr> <tab> emmet#expandAbbrIntelligent("\<tab>") | |
" Split | |
noremap <Leader>h :<C-u>split<CR> | |
noremap <Leader>v :<C-u>vsplit<CR> | |
" Git | |
noremap <Leader>ga :Gwrite<CR> | |
noremap <Leader>gc :Gcommit<CR> | |
noremap <Leader>gsh :Gpush<CR> | |
noremap <Leader>gll :Gpull<CR> | |
noremap <Leader>gs :Gstatus<CR> | |
noremap <Leader>gb :Gblame<CR> | |
noremap <Leader>gd :Gvdiff<CR> | |
noremap <Leader>gr :Gremove<CR> | |
" NERDTree | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif | |
let g:nerdtree_tabs_open_on_gui_startup = 1 | |
" https://github.com/junegunn/fzf | |
" Mapping selecting mappings | |
nmap <C-p> :FZF<CR> | |
xmap <C-p> :FZF<CR> | |
omap <C-p> :FZF<CR> |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
if [ "$TMUX" = "" ]; then tmux; fi | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/vitornogueira/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
ZSH_THEME="dracula-pro" | |
# Set list of themes to pick from when loading at random | |
# Setting this variable when ZSH_THEME=random will cause zsh to load | |
# a theme from this variable instead of looking in $ZSH/themes/ | |
# If set to an empty array, this variable will have no effect. | |
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. | |
# Case-sensitive completion must be off. _ and - will be interchangeable. | |
# HYPHEN_INSENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to automatically update without prompting. | |
# DISABLE_UPDATE_PROMPT="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line if pasting URLs and other text is messed up. | |
# DISABLE_MAGIC_FUNCTIONS=true | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to enable command auto-correction. | |
# ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
# COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# You can set one of the optional three formats: | |
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# or set a custom format using the strftime function format specifications, | |
# see 'man strftime' for details. | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? | |
# Standard plugins can be found in $ZSH/plugins/ | |
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(git tmux zsh-autosuggestions docker kubectl timer wd) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
source /home/vitornogueira/.config/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
. $HOME/.asdf/asdf.sh | |
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
# ~/.config/fish/config.fish | |
if status is-interactive | |
and not set -q TMUX | |
exec tmux | |
end |
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
sudo apt-add-repository ppa:fish-shell/release-2 | |
sudo apt-get update | |
sudo apt-get install fish | |
chsh -s /usr/bin/fish | |
curl -L https://get.oh-my.fish | fish | |
curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisherman | |
fisher install z | |
fisher install done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment