Skip to content

Instantly share code, notes, and snippets.

@chaos-ad
chaos-ad / gist:ba523e34425c612c2197
Created March 21, 2015 09:22
prompt_gentoo_setup
# gentoo prompt theme
prompt_gentoo_help () {
cat <<'EOF'
This prompt is color-scheme-able. You can invoke it thus:
prompt gentoo [<promptcolor> [<usercolor> [<rootcolor>]]]
EOF
}
@chaos-ad
chaos-ad / prompt_gentoo_setup
Created June 13, 2012 12:15
prompt_gentoo_setup
# gentoo prompt theme
prompt_gentoo_help () {
cat <<'EOF'
This prompt is color-scheme-able. You can invoke it thus:
prompt gentoo [<promptcolor> [<usercolor> [<rootcolor>]]]
EOF
}
@chaos-ad
chaos-ad / Preferences.sublime-settings
Created June 13, 2012 12:13
Sublime 2 settings (place me to ~/.config/sublime-text-2/Packages/User/Preferences.sublime-settings)
{
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",
@chaos-ad
chaos-ad / Default (Linux).sublime-keymap
Created June 13, 2012 12:12
Sublime 2 keymap (place me to ~/.config/sublime-text-2/Packages/User)
[
{ "keys": ["f8"], "command": "build" },
{ "keys": ["ctrl+alt+f"], "command": "show_panel", "args": { "panel": "find_in_files" } },
{ "keys": ["ctrl+d"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" },
{ "keys": ["ctrl+r"], "command": "show_panel", "args": {"panel": "replace"} },
{ "keys": ["ctrl+shift+r"], "command": "replace_next" },
@chaos-ad
chaos-ad / install.sh
Last active June 28, 2020 07:27
Installing erlang in ubuntu
#!/bin/bash
# installing erlang on ubuntu's
VERSION="R15B01"
sudo apt-get install build-essential libncurses5-dev openssl libssl-dev
sudo mkdir -p /opt/erlang/
curl -O https://raw.github.com/spawngrid/kerl/master/kerl && chmod a+x kerl
sudo mv kerl /opt/erlang/
@chaos-ad
chaos-ad / .zshrc
Last active October 6, 2015 02:57
zshrc
HISTFILE=~/.histfile
HISTSIZE=500000
SAVEHIST=500000
unsetopt beep
bindkey -e
stty -ixon
zstyle :compinstall filename '~/.zshrc'
autoload -Uz compinit promptinit