Merge branch zsh

This commit is contained in:
Andrew Tomaka 2013-04-29 02:35:47 -04:00
commit aa7debfceb
9 changed files with 122 additions and 81 deletions

13
.aliases Normal file
View file

@ -0,0 +1,13 @@
alias a="ls -la"
alias al="zsh_stats"
alias ga="git add"
alias gaa="git add ."
alias gcm="git commit -m"
alias gd="git diff"
alias gl="git log"
alias gh="git hist"
alias grm="git rm"
alias gs="git status"
alias l="ls -lvh --color=auto"
alias s="cd ~/Source"
alias v="vim"

70
.bashrc
View file

@ -1,70 +0,0 @@
# [----------------------------------------------------------------------------]
# [----------------------------- PROMPT ---------------------------------------]
# [----------------------------------------------------------------------------]
hostn=$(hostname -s)
usern=$(whoami)
function prompt {
ctime=$(date +%T)
prmpt="[${PWD}][${ctime}]"
let FILLS=${COLUMNS}-${#prmpt}
LINE=""
if [[ "$PWD" =~ "/home/$usern" ]]; then
let FILLS=$FILLS+5+${#usern}
fi
for (( f=0; f<$FILLS; f++ ))
do
LINE=$LINE"\e[0;34;44m-"
done
PS1="\e[44;1;37m[\t] \w ${LINE}\e[0m\n"
if [ "$SSH_CONNECTION" == "" ]; then
PS1="$PS1\[\e[1;32;40m\][\u@\h]"
else
PS1="$PS1\[\e[1;33;40m\][\u@\h]"
fi
PS1="$PS1\$(if [ \$? = 0 ]; then echo -e \"\$\"; else echo -e \"\[\e[0;31m\]\$\"; fi)\[\e[0m\] "
}
PROMPT_COMMAND=prompt
# [----------------------------------------------------------------------------]
# [----------------------------- ALIAS ---------------------------------------]
# [----------------------------------------------------------------------------]
# Common parameters
alias ls='ls -v --color=auto'
alias ll='ls -lavh'
alias grep='grep --color'
# Seems like a better idea than it actually is?
#alias sudo='sudo env PATH=$PATH'
# move around
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
# for git
alias get='git'
alias ga='git add'
alias gaa='git add .'
alias gs='git status'
alias gl='git log'
alias gcm='git commit -m'
alias gcf='git commit -F'
# random
alias calc='bc <<<'
# [----------------------------------------------------------------------------]
# [------------------------------ OTHER ---------------------------------------]
# [----------------------------------------------------------------------------]
# Case insensitive matching
shopt -s nocaseglob
# [----------------------------------------------------------------------------]
# [------------------------------ PATH ----------------------------------------]
# [----------------------------------------------------------------------------]
PATH=$PATH:$HOME/bin

View file

@ -1,6 +1,13 @@
[user] [user]
name = Andrew Tomaka name = Andrew Tomaka
email = atomaka@gmail.com email = atomaka@gmail.com
[github]
user = atomaka
[apply]
whitespace = fix
[alias]
hist = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
[color] [color]
ui = auto ui = auto
[color "branch"] [color "branch"]
@ -16,12 +23,12 @@
added = yellow added = yellow
changed = green changed = green
untracked = cyan untracked = cyan
[merge]
tool = vimdiff
[apply]
whitespace = fix
[core] [core]
excludesfile = ~/.gitignore_global excludesfile = ~/.gitignore_global
autocrlf = input autocrlf = input
editor = subl editor = subl
filemode = false filemode = false
[merge]
tool = vimdiff
[push]
default = upstream

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule ".oh-my-zsh"]
path = .oh-my-zsh
url = https://github.com/robbyrussell/oh-my-zsh.git

View file

@ -1,2 +0,0 @@
set completion-ignore-case On
TAB: menu-complete

1
.oh-my-zsh Submodule

@ -0,0 +1 @@
Subproject commit b6ea876971b2270a2c73a07a6f6a337604132c6f

View file

@ -1 +0,0 @@
source ~/.bashrc

27
.vimrc Normal file
View file

@ -0,0 +1,27 @@
" Options
set nocompatible " Disable vi compatibility
set ffs=unix,dos " File format prefer unix endings
set eol " Add newlien at end of file
set shellslash " Forward slashes
set nobk " No backup files
set textwidth=80
set laststatus=2 " Always show status line
set showmode " Show current mode
set history=100 " History length
set cul " Highlight current line
set nowrap " Disable wrapping by default
set backspace=2 " Backspace over indent, eol, start of insert
set hlsearch " Search highlights
set wrapscan " Wraped search
set incsearch " Search as yuo type
set ignorecase " Ignore case with search
set smartcase " Search will not ignore uppercase
set showcmd " Show command as you type
set hls " Highlight search (hlsearch?)
set ruler " Show cursor position
set autoindent
" Tabs are 2 spaces
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab

63
.zshrc Normal file
View file

@ -0,0 +1,63 @@
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# List directory when changing (github/r00k)
chpwd() {
ls -lvh --color=auto
}
# Larger history
HISTSIZE=10000
HISTFILE=~/.zsh_history
SAVEHIST=10000
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment to change how often before auto-updates occur? (in days)
# export UPDATE_ZSH_DAYS=13
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want to disable command autocorrection
# DISABLE_CORRECTION="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# Uncomment following line if you want to disable marking untracked files under
# VCS as dirty. This makes repository status check for large repositories much,
# much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git)
source $ZSH/oh-my-zsh.sh
# Aliases file
source $HOME/.aliases
# Add personal bin folder
PATH=$PATH:$HOME/bin
# Customize to your needs...