Skip to content

Instantly share code, notes, and snippets.

View dariodaich's full-sized avatar
🎮
There are levels to it.

Dario Daić dariodaich

🎮
There are levels to it.
  • ButterflyMX
  • Croatia, Zagreb
View GitHub Profile
@dariodaich
dariodaich / vim_color_scheme_setup.md
Last active February 16, 2019 20:53
Set up and choose `vim` color scheme, quickly.

Pick vim color scheme, quickly

When you are in need of a new color scheme and you want to sidestep the hassle of manually editing and loading each scheme one by one, you can do so with these steps:

  1. copy switch_colors.vim script to ~/.vim/plugin/switch_colors.vim
  2. clone vim-colorschemes
  3. copy schemes from vim-colorschemes/colors to ~/.vim/colors
  4. while in vim execute :SetColors all command (it will set the script to use newly downloaded schemes from the repo)
  5. use F8 to cycle forward and Shift-F8 to cycle backwards through all schemes
  6. after choosing one, set its name in .vimrc color scheme with colorscheme [scheme name]
@dariodaich
dariodaich / simple_git_branch.sh
Created March 4, 2019 14:53
Display Git branch in your prompt.
# !/bin/bash
function simple_git_branch() {
if [ -n "$(ls -la | grep '.git$')" ]; then
echo "$(git branch | grep '^*' | colrm 1 2)"
else
echo "~"
fi
}

by Russ Olsen

  1. Be serious
  • it is a focused/conscious activity, not a byproduct of office behaviour
  1. You need a Plan
  • zoom in/out
  • explain through process and context
  1. Mind the Gap