-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from AndrewJudson/ajudson/fix_zshrc_aliases
Added zshrc file, fixed aliasing issue
- Loading branch information
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
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
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 |