Skip to content

Commit

Permalink
Merge pull request #12 from AndrewJudson/ajudson/fix_zshrc_aliases
Browse files Browse the repository at this point in the history
Added zshrc file, fixed aliasing issue
  • Loading branch information
AndrewJudson committed Jun 17, 2015
2 parents dc44618 + ed104ff commit 8445ed3
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
File renamed without changes.
63 changes: 63 additions & 0 deletions other/.zshrc_master
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#!/bin/zsh
# This file should be sourced by the local .bashrc and should hold all the
# functionality of what would normally go in .bashrc

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# Get the directory of this file (other bash files we source are in the
# same directory)
DIR="$( cd "$( dirname "${(%):-%N}" )" && pwd )"

# Load antigen
source "$HOME/.antigen/antigen.zsh"
antigen use oh-my-zsh
antigen bundle git
antigen bundle command-not-found
antigen bundle zsh-users/zsh-completions src
antigen bundle zsh-users/zsh-syntax-highlighting
antigen theme robbyrussell
antigen apply


# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace

# append to the history file, don't overwrite it
setopt inc_append_history

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=10000
HISTFILESIZE=99999999

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
#setopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f $DIR"/.aliases" ]; then
. $DIR"/.aliases"
fi

export EDITOR="emacs -nw"
export PATH=$PATH:~/bin

#Git branch in prompt.
#parse_git_branch() {
# git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
#}
#export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
autoload -U colors && colors
export TERM=xterm-256color

0 comments on commit 8445ed3

Please sign in to comment.