brew update
brew list
brew search <package>
brew install <package>
https://github.com/httpie/httpie
https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph
Lens - PAID
https://stackoverflow.com/questions/2518127/how-do-i-reload-bashrc-without-logging-out-and-back-in
source ~/.bashrc
. ~/.bashrc
https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/kubectl
https://github.com/gradle/gradle-completion
If you are using om-my-zsh
omz update
-
clone this repository with all plugins included
mkdir -p ~/src/github/config git clone https://github.com/andrzejsydor/config.git ~/src/github/config cd ~/src/github; git submodule init; git submodule update ./install.sh
cd config git pull && ./install.sh
~/.vim/bin/install
We strongly recommend to use ZSH shell with this config. To change your default shell into ZSH, just type chsh -s /usr/zsh
in your terminal.
-
Install .oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
-
Add those lines in your newly created
~.zshrc
file. Please, ensure, that you have zsh plugins beforeoh-my-zsh
file loaded, and.zshrc
after that.source $HOME/bin/.zsh_plugins source $ZSH/oh-my-zsh.sh source $HOME/bin/.zshrc
-
Add this line to your
~/.bash_profile
filesource ~/bin/.bashrc
- Git branch color
- Git command autocomplete
- Git aliases
- Git rewrite author
- Project specific script structurization
- Shell color schemes
If there is a git repository in current folder, it shows the current branch name, and color it to green/red depending of uncommitted changes
TODO: need update This script autocompletes git commands after pressing key.
I use several shortcuts for git to improve my speed of repository management. For now I didn't updated git autocomplete script
to work with
aliases, so I use shell aliases only for commands without need to autocomplete branches.
alias ga='git add -p'
alias gaa='git add -A'
alias gc='git commit -m' #this allows me to use 'gc "Commit message"'
alias gca='git commit --amend'
alias gl='git pull -r' #always pull and rebase actuall branch
alias gm='git merge'
alias go='git checkout'
alias gp='git push' #always push actual branch.
alias gs='git status'
alias gr='git rebase master' #I often rebase with master and almost never with other branches.
alias gri='git rebase -i'
If you want to add commands for project specific environment setup, just add project-specific/private.sh
and list sources of private files there.
I name private project_files started from _
- those files are also ingnored in this repository.
Example:
FILE: project-specific/private.sh
source $HOME/bin/project-specific/_wpl.sh
This configuration allows me to simply use wpls
to immediately start some server inside of my project with proper gemset set. I use separeate file
for each project and keep them private.