Created
May 23, 2011 05:21
-
-
Save jbhannah/986259 to your computer and use it in GitHub Desktop.
Common configuration files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Beware! This file is rewritten every time htop exits. | |
# The parser is also very primitive, and not human-friendly. | |
# (I know, it's in the todo list). | |
fields=0 48 17 18 38 39 40 2 46 47 49 1 | |
sort_key=47 | |
sort_direction=1 | |
hide_threads=0 | |
hide_kernel_threads=1 | |
hide_userland_threads=0 | |
shadow_other_users=0 | |
show_thread_names=0 | |
highlight_base_name=1 | |
highlight_megabytes=1 | |
highlight_threads=1 | |
tree_view=0 | |
header_margin=1 | |
detailed_cpu_time=0 | |
color_scheme=0 | |
delay=10 | |
left_meters=CPU AllCPUs Memory Swap | |
left_meter_modes=1 1 1 1 | |
right_meters=Hostname Clock Tasks LoadAverage Uptime | |
right_meter_modes=2 2 2 2 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set background=dark | |
set autowriteall | |
set mouse=a | |
set nowrap | |
set sidescroll=10 | |
set autoindent | |
set smartindent | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
set showmatch | |
set incsearch | |
set number | |
set ruler | |
set showcmd | |
filetype plugin indent on | |
syntax on | |
set laststatus=2 | |
set statusline=%<\ %n:%f%=%m%r%y\ %l\/%L:%c%V\ (%P) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
### Key bindings | |
bindkey '\e[H' beginning-of-line | |
bindkey '\e[F' end-of-line | |
### End key bindings | |
### Changing directories | |
setopt auto_cd | |
setopt auto_pushd | |
setopt pushd_ignore_dups | |
### End changing directories | |
### Completion | |
setopt always_to_end | |
setopt auto_name_dirs | |
setopt complete_aliases | |
setopt complete_in_word | |
setopt glob_complete | |
setopt menu_complete | |
### End completion | |
### Expansion and globbing | |
setopt extended_glob | |
setopt mark_dirs | |
setopt nomatch | |
### End expansion and globbing | |
### Input/output & jobs | |
setopt correct | |
setopt notify | |
### End input/output & jobs | |
### History | |
setopt append_history | |
setopt extended_history | |
setopt hist_ignore_all_dups | |
HISTFILE=$HOME/.zsh_history | |
HISTSIZE=10000 | |
SAVEHIST=$HISTSIZE | |
### End history | |
### Version control | |
setopt prompt_subst | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' stagedstr '%F{green}●%f' | |
zstyle ':vcs_info:*' unstagedstr '%F{yellow}●%f' | |
zstyle ':vcs_info:*' check-for-changes true | |
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{11}%r' | |
zstyle ':vcs_info:*' enable git svn | |
precmd () { | |
if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] { | |
zstyle ':vcs_info:*' formats '%c%u[%F{green}%b%f]' | |
} else { | |
zstyle ':vcs_info:*' formats '%c%u%F{red}●%f[%F{green}%b%f]' | |
} | |
vcs_info | |
} | |
### End version control | |
### Prompts | |
local -A pc | |
pc['user']='%(!,%F{red},%F{blue})%B%n%b%f' | |
pc['host']='%F{magenta}%B%m%b%f' | |
pc['dloc']='%F{yellow}%30<...<%B%~%b%<<%f' | |
pc['bang']='%B%0(?,%F{green},%F{red})%(!,#,$)%f%b' | |
PROMPT='%F{green}[%f'$pc['user']'%F{green}@%f'$pc['host']'%F{green}]%f '$pc['dloc']' '$pc['bang']' ' | |
PROMPT2='%_> ' | |
PROMPT3='?# ' | |
PROMPT4='+%N:%i:%_> ' | |
RPROMPT=' %B%F{red}%0(?,,%?)%f%b ${vcs_info_msg_0_}' | |
### End prompts | |
### Aliases | |
[[ -f /usr/local/Cellar/coreutils/8.12/aliases ]] && source /usr/local/Cellar/coreutils/8.12/aliases | |
if [[ -x /usr/local/bin/gls ]] | |
then | |
alias ls='gls -vF --color=auto' | |
else | |
alias ls='ls -vF --color=auto' | |
fi | |
alias ll='ls -hl' | |
alias la='ll -A' | |
### End aliases |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment