dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit 691b36528df32e5f07868927da39533fc7537e70
parent a378cdce3a9a79ff520b5f1cba9d233029edcc7f
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Sat, 27 Feb 2016 17:50:02 -0500

Added zsh config.

Diffstat:
.aliases | 32++++++++++++++++++++++++++++++++
.zshenv | 48++++++++++++++++++++++++++++++++++++++++++++++++
.zshrc | 41+++++++++++++++++++++++++++++++++++++++++
3 files changed, 121 insertions(+), 0 deletions(-)

diff --git a/.aliases b/.aliases @@ -0,0 +1,32 @@ +# shell +alias ls='ls -F --color' +alias rm='rm -vi' +alias cp='cp -vi' +alias mv='mv -vi' + +# editor +alias e='emacsclient -t' +alias ec='emacsclient -c' + +# scruf +alias scruf='java -cp ".:git/" scruf.Run' + +# remote +alias moshn='mosh nabla' +alias moshf='mosh fpost' +alias sshc='ssh crux' +alias moshr='mosh rspace' + +# media +alias v='mplayer' +alias m='ncmpcpp' + +## automatically open media: +if which mplayer >/dev/null; then + alias -s {ogg,ogv,mp3,mkv,avi,ogm,wmv,m4v,mp4,mov,3GP,webm,m4a}="mplayer -idx" +fi + +# web +alias chrm='chromium --incognito' +alias chrmt='chromium --incognito --proxy-server=socks5://localhost:9050' +alias iwt='iceweasel -new-tab'alias iwt='iceweasel -new-tab' diff --git a/.zshenv b/.zshenv @@ -0,0 +1,48 @@ +# editor +export EDITOR='emacsclient -t --alternate-editor nano' + +# browser +export BROWSER='iceweasel' + +# gNS dev +export DEBEMAIL='rsiddharth@ninthfloor.org' +export DEBFULLNAME='rsiddharth' + +# combox +export COMBOX_DOCS_HOST='rspace:~/public_html/combox/' + +# backup - jarl +export JARL_FILTER='/home/rsd/git/dotfiles/rsync-backup/filter-jarl' +export JARL_BACKUP_PATH='/media/rsd/jarl/archive/grus/latest/' +export JARL_ANNEX_PATH='/media/rsd/jarl/annex/' + +# backup - chum +export CHUM_FILTER='/home/rsd/git/dotfiles/rsync-backup/filter-chum' +export CHUM_BACKUP_PATH='/media/rsd/chum' +export CHUM_ANNEX_PATH='/media/rsd/chum/annex/' + +# fdump +export FDUMP_ID=${HOME}'/.ssh/id_docruxu_rsa' +export FDUMP_DEST='rspace:~/public_html/tmp/' + +# setup npm +export NPM_PACKAGES=${HOME}'/.npm-packages' +#export MANPATH=${NPM_PACKAGES}'/share/man:'$(manpath) +export NODE_PATH=${NPM_PACKAGES}'/lib/node_modules:'${NODE_PATH} +#MANPATH=${HOME}'/.manl/:'$(manpath) + + +# setup ruby +# http://guides.rubygems.org/faqs/#user-install +if which ruby >/dev/null && which gem >/dev/null; then + RUBY_PATH="$(ruby -rubygems -e 'puts Gem.user_dir')/bin" +fi + +# jadx for android app analysis +JADX_PATH="/home/rsd/git-others/jadx/build/jadx/bin" + +# sireum for amandroid. +SIREUM_PATH="/home/rsd/bgc/sireum/strawberry/Sireum" + +typeset -U path +path=(~/.bin $JADX_PATH $SIREUM_PATH $NPM_PACKAGES/bin $RUBY_PATH $path) diff --git a/.zshrc b/.zshrc @@ -0,0 +1,41 @@ +# Set up the prompt +autoload -Uz promptinit +promptinit +RPROMPT=" %n@%m " +PROMPT=" %~ +↳ " + +setopt histignorealldups sharehistory autocd + +# Use emacs keybindings even if our EDITOR is set to vi +bindkey -e + +# Keep 1000 lines of history within the shell and save it to ~/.zsh_history: +HISTSIZE=1000 +SAVEHIST=1000 +HISTFILE=~/.zsh_history + +# Use modern completion system +autoload -Uz compinit +compinit + +zstyle ':completion:*' auto-description 'specify: %d' +zstyle ':completion:*' completer _expand _complete _correct _approximate +zstyle ':completion:*' format 'Completing %d' +zstyle ':completion:*' group-name '' +zstyle ':completion:*' menu select=2 +eval "$(dircolors -b ~/v/git-others/dircolors-solarized/dircolors.ansi-dark)" +zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} +zstyle ':completion:*' list-colors '' +zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s +zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*' +zstyle ':completion:*' menu select=long +zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s +zstyle ':completion:*' use-compctl false +zstyle ':completion:*' verbose true + +zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' +zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' + +# aliases +. ~/.aliases