Skip to content

Instantly share code, notes, and snippets.

@ruph
ruph / scm-server
Created November 10, 2012 12:10
FreeBsd's rc.d script for scm ~ /usr/local/etc/rc.d/scm-server
#!/bin/sh
# PROVIDE: scm-server
# REQUIRE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name=scm
rcvar=`set_rcvar`
@ruph
ruph / .bashrc
Last active February 23, 2016 15:47
bash settings
Set the PS1 prompt (with colors).
# Based on http://www-128.ibm.com/developerworks/linux/library/l-tip-prompt/
# And http://networking.ringofsaturn.com/Unix/Bash-prompts.php .
# PS1="\h\[\e[32;1m\]:\[\e[32;1m\]\w$ \[\e[0m\]"
## GIT / SVN aware prompt
BLACK="\[\033[0;38m\]"
RED="\[\033[0;31m\]"
RED_BOLD="\[\033[01;31m\]"
BLUE="\[\033[01;34m\]"
@ruph
ruph / .zshrc
Last active November 1, 2015 00:49
zsh settings
export EDITOR=vim
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10240
SAVEHIST=10240
setopt appendhistory extendedglob nomatch
unsetopt beep
bindkey -e
WORDCHARS=${WORDCHARS//\/}
@ruph
ruph / .vimrc
Last active April 25, 2024 16:02
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