Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 23 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,57 @@
CAMPUS CODE Dotfiles
====================

## Source of inspiration
## Introdução

Our dotfiles are based on following amazing dotfiles:
Nosso _dotfiles_ são inspirados nos seguintes excelentes dotfiles:

[Skwp Dotfiles](http://github.com/skwp/dotfiles)

[ThoughtBot Dotfiles](http://github.com/thoughtbot/dotfiles)

## Requirements
Esse dotfiles são usados nos nossos treinamentos, por isso a instalação desse
dotfiles incluem alguns outros programas, os quais são parte do treinamento.

## Softwares instalados

* Zsh
* [Ag](https://github.com/ggreer/the_silver_searcher)
* [ITerm 2 (Mac)](https://www.iterm2.com/index.html)
* MVim (Mac) or GVim (Linux)
* [Solarized](http://ethanschoonover.com/solarized)
* Tmux

## Pre-Requirements
Somente no MacOs

* [ITerm 2 (Mac)](https://www.iterm2.com/index.html)
* Chrome
* Atom
* Visual Studio Code
* MVim

- curl
Somente no Ubuntu Family

* GVim

## Pre-Requirements

Ubuntu

- `sudo apt-get install -y curl`

## Install

Run follow command:
Execute o seguinte comando após instalar o `curl`:

```
sh -c "`curl -fSs https://raw.githubusercontent.com/campuscode/cc_dotfiles/master/install.sh`"
```

Type your password to change your default shell to `zsh`
Sua senha será solicitada para completar a instalação quando necessário.

## Docs

[Vim Key Mapping](Vim.md)

[Tmux Key Mapping](Tmux.md)
- [Vim Key Mapping](docs/Vim.md)
- [Tmux Key Mapping](docs/Tmux.md)
- [Zsh Key Mapping / Aliases](docs/Zsh.md)

#### It's easy to make your customizations

Expand Down
File renamed without changes.
File renamed without changes.
39 changes: 39 additions & 0 deletions docs/Zsh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## Zsh

### Caracter na linha de comando

```
~/workspace
☻ ruby-2.7.0
```

Para substituir o "☻", basta incluir as seguintes variáveis no `.zshrc.local`:

```
export CC_GOOD_COMMAND=":)" # para exit 0, comando com sucesso
export CC_BAD_COMMAND=":(" # para comandos com erro
```

### Key Bindings

- Ctrl-A - Começo da linha
- Ctrl-E - Fim da linha
- Ctrl-R - pesquisa incremental no history
- Ctrl-P - Pesquisa no history
- Ctrl-N - Insere ultima palavra
- Ctrl-T - Sudo e comando

### Secrets

Adicione suas variáveis de ambientes locais em `.secrets`

### Aliases

Leia o arquivo: `~/.aliases` para ver a quantidade de aliases úteis.

Ser precisar rodar um comando sem o uso de alias, faça:

`\comando`

Ex: `\ls`

1 change: 1 addition & 0 deletions mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/
brew install zsh ctags git hub tmux reattach-to-user-namespace the_silver_searcher
brew install macvim --custom-icons --override-system-vim --with-lua --with-luajit
brew cask install atom
brew cask install visual-studio-code
brew cask install google-chrome
brew cask install iterm2

2 changes: 1 addition & 1 deletion zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ bindkey jj vi-cmd-mode
# handy keybindings
bindkey "^A" beginning-of-line
bindkey "^E" end-of-line
bindkey "^K" kill-line
# bindkey "^K" kill-line #colide com ^K do vim mode
bindkey "^R" history-incremental-search-backward
bindkey "^P" history-search-backward
bindkey "^Y" accept-and-hold
Expand Down