Skip to content

Instantly share code, notes, and snippets.

View ruph's full-sized avatar
💭
Hi! 👋

Davor Strehar ruph

💭
Hi! 👋
View GitHub Profile
@ruph
ruph / .vimrc
Last active October 23, 2025 15:59
vim settings
" Use vim settings, rather then vi settings (much better!)
" This must be first, because it changes other options as a side effect.
set nocompatible
set t_Co=256 " iTerm2 supports 256 color mode.
set ai " auto indenting
set history=100 " keep 100 lines of history
set ruler " show the cursor position
syntax on " syntax highlighting
filetype plugin on " use the file type plugins
@ruph
ruph / .zshrc
Last active October 23, 2025 15:59
zsh settings
# Find and set branch name var if in git repository.
function git_branch_name()
{
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}')
if [[ $branch == "" ]];
then
:
else
echo '%F{242}['$branch']%f'
fi