Skip to content

andrzejsydor/config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Content

CLI tools

Homebrew

Homebrew

brew update
brew list
brew search <package>
brew install <package>

HTTPie

https://github.com/httpie/httpie

IDE

VSCode

https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph

DevOps

Docker

Kubernetes

Lens - PAID

config files for Linux and macOS

TIP: reload .bashrc.

https://stackoverflow.com/questions/2518127/how-do-i-reload-bashrc-without-logging-out-and-back-in

source ~/.bashrc
. ~/.bashrc

ZSH Plugins

https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/kubectl

https://github.com/gradle/gradle-completion

Update

If you are using om-my-zsh

omz update

Installation

  1. 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

    update

    cd config
    git pull && ./install.sh

    install vim plugin

    ~/.vim/bin/install

ZSH (Recommended)

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.

  1. Install .oh-my-zsh

    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  2. Add those lines in your newly created ~.zshrc file. Please, ensure, that you have zsh plugins before oh-my-zsh file loaded, and .zshrc after that.

    source $HOME/bin/.zsh_plugins
    source $ZSH/oh-my-zsh.sh
    source $HOME/bin/.zshrc

BASH

  1. Add this line to your ~/.bash_profile file

    source ~/bin/.bashrc

Script list

  1. Git branch color
  2. Git command autocomplete
  3. Git aliases
  4. Git rewrite author
  5. Project specific script structurization
  6. Shell color schemes

1. Git branch color

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

2. Git completion

TODO: need update This script autocompletes git commands after pressing key.

3. Git aliases

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'

5. Project specific scripts

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.

Links

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published