Skip to content

Commit

Permalink
More stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboy committed Dec 21, 2011
1 parent 52f94f9 commit 0f9288f
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 4 deletions.
6 changes: 6 additions & 0 deletions link/.ackrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--ignore-dir=log
--ignore-dir=tmp
--ignore-dir=vendor
--ignore-dir=public/generated
--sort-files
-a
3 changes: 3 additions & 0 deletions link/.aprc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
AwesomePrint.defaults = {
:indent => -2
}
14 changes: 14 additions & 0 deletions link/.toprc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
RCfile for "top with windows" # shameless braggin'
Id:a, Mode_altscr=0, Mode_irixps=1, Delay_time=3.000, Curwin=0
Def fieldscur=AEHIOQTWKNMbcdfgjplrsuvyzX
winflags=130745, sortindx=13, maxtasks=0
summclr=2, msgsclr=1, headclr=2, taskclr=2
Job fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX
winflags=62777, sortindx=0, maxtasks=0
summclr=6, msgsclr=6, headclr=7, taskclr=6
Mem fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX
winflags=62777, sortindx=13, maxtasks=0
summclr=5, msgsclr=5, headclr=4, taskclr=5
Usr fieldscur=ABDECGfhijlopqrstuvyzMKNWX
winflags=62777, sortindx=4, maxtasks=0
summclr=3, msgsclr=3, headclr=2, taskclr=3
1 change: 1 addition & 0 deletions source/file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ alias -- -='cd -'

# File size
alias fs="stat -f \"%z bytes\""
alias df="df -h"

# Recursively delete `.DS_Store` files
alias dsstore="find . -name '*.DS_Store' -type f -ls -delete"
Expand Down
11 changes: 11 additions & 0 deletions source/linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Linux-only stuff. Abort if not linux.
if [[ ! "$OSTYPE" =~ ^linux ]]; then
return
fi

# ubuntu package management
alias update="sudo aptitude update"
alias install="sudo aptitude install"
alias upgrade="sudo aptitude safe-upgrade"
alias remove="sudo aptitude remove"
alias search="aptitude search"
7 changes: 4 additions & 3 deletions source/misc.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Case-insensitive globbing (used in pathname expansion)
shopt -s nocaseglob

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

# Prefer US English and use UTF-8
export LC_ALL="en_US.UTF-8"
export LANG="en_US"

#export TERM="xterm-color"

export GREP_OPTIONS='--color=auto'

# Misc shortcuts
alias g=git
2 changes: 1 addition & 1 deletion source/osx.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OSX-only stuff
# OSX-only stuff. Abort if not OSX.
if [[ ! "$OSTYPE" =~ ^darwin ]]; then
return
fi
Expand Down
20 changes: 20 additions & 0 deletions source/vcs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

# Git shortcuts

alias g='git'
alias ga='git add'
alias gp='git push'
alias gu='git pull'
alias gl='git log'
alias gs='git status'
alias gst='gs'
alias gd='git diff'
alias gdc='git diff --cached'
alias gm='git commit -m'
alias gma='git commit -am'
alias gb='git branch'
alias gba='git branch -a'
alias gc='git checkout'
alias gra='git remote add'
alias grr='git remote rm'
alias gcl='git clone'

0 comments on commit 0f9288f

Please sign in to comment.