Skip to content

Commit

Permalink
Changes from my ubuntu virtual machine
Browse files Browse the repository at this point in the history
  • Loading branch information
gterrono committed Dec 21, 2012
1 parent 251589d commit 8703e67
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 12 deletions.
15 changes: 15 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,20 @@ alias fd='find . -name'
alias aws='ssh -i ~/.ssh/GregVaio.pem ubuntu@ec2-50-19-185-231.compute-1.amazonaws.com'
alias vs='vim -S sess'

function copy {
if [ -f $1 ];
then
cp $1 ~/copy-things/
cd ~/copy-things/
git add $1
git commit -m $1
git push origin master
cd -
else
echo "File $1 does not exist."
fi
}

function branch {
echo $(git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3)
}
Expand All @@ -139,3 +153,4 @@ export PS1="\u:\W \$(branch)\[\e[0;32m\] $\[\e[0m\] "
alias gpb="git push origin $(branch)"

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
PATH=$PATH:~/cis120/12fa/tools
4 changes: 3 additions & 1 deletion .vim/.netrwhist
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =7
let g:netrw_dirhist_cnt =9
let g:netrw_dirhist_1='/Users/alexanderterrono/Desktop/dcgae'
let g:netrw_dirhist_2='/Users/alexanderterrono/Dropbox/Spring 2012/CIS 277/Homework/CIS277Code/HW1/HW1.xcodeproj'
let g:netrw_dirhist_3='/Users/alexanderterrono/Desktop/dcgae'
let g:netrw_dirhist_4='/Users/alexanderterrono/pre-essaysafe/web'
let g:netrw_dirhist_5='/Users/alexanderterrono/pre-essaysafe/web/EssaySafe'
let g:netrw_dirhist_6='/Users/alexanderterrono/dcgae2'
let g:netrw_dirhist_7='/Users/alexanderterrono/dcgae'
let g:netrw_dirhist_8='/home/greg/cis120/hw_submissions/hw2/ztaub'
let g:netrw_dirhist_9='/home/greg/cis120/hw_submissions/hw8/justc'
16 changes: 6 additions & 10 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,18 @@ syntax on
filetype on
filetype plugin on

map <up> <nop>
map <down> <nop>
map <silent> <left> :tabp <CR>
map <silent> <right> :tabn <CR>
nmap <silent> <A-Up> :wincmd k<CR>
nmap <silent> <A-Down> :wincmd j<CR>
nmap <silent> <A-Left> :wincmd h<CR>
nmap <silent> <A-Right> :wincmd l<CR>
nmap <silent> <up> :wincmd k<CR>
nmap <silent> <down> :wincmd j<CR>
nmap <silent> <left> :wincmd h<CR>
nmap <silent> <right> :wincmd l<CR>
map qq :wq<CR>
map Q :q<CR>
map mks :mksession! sess<CR>
autocmd FileType ruby map z :w<CR> :!ruby -c %<CR>
map! ii <Esc>
map! jk <Esc>
map! kj <Esc>
map :W :w
map :Q :q
Expand Down
4 changes: 4 additions & 0 deletions .xmodmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
remove Lock = Caps_Lock
remove Control = Control_L
keysym Caps_Lock = Control_L
add Control = Control_L
2 changes: 1 addition & 1 deletion make_symlinks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

dir=~/dotfiles # dotfiles directory
olddir=~/dotfiles_old # old dotfiles backup directory
files=".bashrc .vimrc .vim .bash_profile .gitconfig git-completion.bash" # list of files/folders to symlink in homedir
files=".bashrc .vimrc .vim .bash_profile .gitconfig git-completion.bash .xmodmap" # list of files/folders to symlink in homedir

##########

Expand Down

0 comments on commit 8703e67

Please sign in to comment.