Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9da221a
Showing
3 changed files
with
213 additions
and
0 deletions.
There are no files selected for viewing
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,49 @@ | ||
# | ||
# This script runs for login shells | ||
# | ||
|
||
# Make sure paths, etc. are set up first, then | ||
if [ -f ~/.bashrc ]; then | ||
. ~/.bashrc | ||
fi | ||
|
||
# Try to determine the type of terminal | ||
# If you will be using a dialup terminal, then replace the 'vt100' in the next | ||
# line with the appropriate terminal name. | ||
# If the terminal you usually use isn't a vt100, change the 'vt100's below. | ||
defaultterm=vt100 | ||
|
||
# If you ssh in from cygwin, 'cygwin' is the terminal type. | ||
# tux doesn't know what that is, and ansi works fine for me | ||
if [ ${TERM} = 'cygwin' ] ; then | ||
export TERM='xterm' | ||
fi | ||
|
||
# more may need to be done here, but this usually gets the behvior I like | ||
# if [ -x /sbin/stty ]; then | ||
# /sbin/stty erase "^h" intr "^C" | ||
# else | ||
# stty erase "^h" intr "^C" | ||
# fi | ||
|
||
# Set the default X server. | ||
# if DISPLAY is not set, the if is true: | ||
#if [ ${DISPLAY:-setdisplay} = setdisplay ]; then | ||
# if REMOTEHOST is set, the if is true: | ||
#if [ ${REMOTEHOST:-islocal} != islocal ]; then | ||
#DISPLAY=${REMOTEHOST}:0.0 | ||
#else | ||
#DISPLAY=${HOSTNAME}:0.0 | ||
#fi | ||
#export DISPLAY | ||
#fi | ||
|
||
# prompt is set in .bashrc | ||
|
||
|
||
|
||
|
||
# Setting PATH for MacPython 2.6 | ||
# The orginal version is saved in .bash_profile.pysave | ||
PATH="/Library/Frameworks/Python.framework/Versions/2.6/bin:${PATH}" | ||
export PATH |
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,101 @@ | ||
# ~/.bashrc: executed by bash(1) for non-login shells. | ||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | ||
# for examples | ||
|
||
# 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 | ||
export HISTCONTROL=ignoredups | ||
|
||
# check the window size after each command and, if necessary, | ||
# update the values of LINES and COLUMNS. | ||
shopt -s checkwinsize | ||
|
||
# make less more friendly for non-text input files, see lesspipe(1) | ||
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)" | ||
|
||
# set variable identifying the chroot you work in (used in the prompt below) | ||
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then | ||
debian_chroot=$(cat /etc/debian_chroot) | ||
fi | ||
|
||
# set a fancy prompt (non-color, unless we know we "want" color) | ||
#case "$TERM" in | ||
#xterm-color) | ||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | ||
#;; | ||
#*) | ||
#PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | ||
#;; | ||
#esac | ||
|
||
# Comment in the above and uncomment this below for a color prompt | ||
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | ||
|
||
# If this is an xterm set the title to user@host:dir | ||
case "$TERM" in | ||
xterm*|rxvt*) | ||
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"' | ||
# enable programmable completion features (you don't need to enable | ||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile | ||
# sources /etc/bash.bashrc). | ||
if [ -f /etc/bash_completion ]; then | ||
. /etc/bash_completion | ||
fi | ||
;; | ||
screen) | ||
set -o functrace | ||
trap "echo -ne '\033k'bash'\033\\'" DEBUG RETURN | ||
|
||
PROMPT_COMMAND='echo -ne "\033]0;bash\007"' | ||
|
||
# enable programmable completion features (you don't need to enable this, | ||
# if it's already enabled in /etc/bash.bashrc and /etc/profile sources | ||
# /etc/bash.bashrc). | ||
if [ -f /etc/bash_completion ]; then | ||
. /etc/bash_completion | ||
fi | ||
;; | ||
*) | ||
;; | ||
esac | ||
|
||
# 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 ~/.bash_aliases ]; then | ||
# . ~/.bash_aliases | ||
#fi | ||
|
||
# enable color support of ls and also add handy aliases | ||
if [ "$TERM" != "dumb" ]; then | ||
alias ls='ls -G' | ||
#alias dir='ls --color=auto --format=vertical' | ||
#alias vdir='ls --color=auto --format=long' | ||
fi | ||
|
||
# some more ls aliases | ||
#alias ll='ls -l' | ||
#alias la='ls -A' | ||
#alias l='ls -CF' | ||
alias time='/usr/bin/time' | ||
alias lock='xscreensaver-command -lock' | ||
alias clear='tput reset' | ||
|
||
|
||
# Specify that ^D won't log you out. | ||
set -o ignoreeof | ||
|
||
# make vi the command-line editor | ||
# comment out to use emacs mode (the default) | ||
set -o vi | ||
|
||
export PATH="~/bin:$PATH" | ||
|
||
#export PATH="/home/gnd25/nachos/bin:/home/gnd25/bin/mips-x86.linux-xgcc:/bin:$PATH" | ||
#export PATH="/home/gnd25/nachos/bin:/bin:$PATH" | ||
#export ARCHDIR="/home/gnd25/bin/mips-x86.linux-xgcc" |
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 @@ | ||
" THIS AIN'T VI ANYMORE | ||
set nocompatible | ||
|
||
" Some personal preferences | ||
set softtabstop=2 | ||
set sw=2 | ||
set tabstop=2 | ||
set expandtab | ||
colorscheme delek | ||
|
||
set autoindent | ||
set smartindent | ||
|
||
set formatoptions=croqla | ||
|
||
" Word wrap two before the end of the line | ||
set wm=2 | ||
|
||
" Buffers don't need to be saved before switching, they remember undo, etc. | ||
set hidden | ||
|
||
" Longer history memory for searches, etc. | ||
set history=1000 | ||
|
||
" Get better matching with % | ||
runtime macros/matchit.vim | ||
|
||
" Set the backup directory to save swp files all in one place | ||
set backupdir=~/.vim/tmp,~/.tmp,~/tmp,/var/tmp,/tmp | ||
set directory=~/.vim/tmp,~/.tmp,~/tmp,/var/tmp,/tmp | ||
|
||
" maintain a constant zz state, second call will toggle it back off | ||
map <Leader>zz :let &scrolloff=999-&scrolloff<CR> | ||
" Use the ruler | ||
set ruler | ||
|
||
|
||
" Some stuff that's probably default | ||
set backspace=indent,eol,start | ||
syntax on | ||
filetype on | ||
filetype plugin on | ||
filetype indent on | ||
set hlsearch | ||
set incsearch | ||
|
||
" Prevents Vim 7.0 from setting filetype to 'plaintex' | ||
let g:tex_flavor='latex' | ||
|
||
" Don't annoy everyone else in the room! | ||
set visualbell | ||
|
||
" screen! | ||
let &titlestring = "[vim(" . expand("%:t") . ")]" | ||
if &term == "screen" | ||
let &titlestring = "vim" | ||
set t_ts=k | ||
set t_fs=\ | ||
endif | ||
if &term == "screen" || &term == "xterm" | ||
set title | ||
endif |