pull/81/merge^2
JFSIII 2011-06-23 07:27:14 -04:00
commit 64e52eaf96
14 changed files with 18 additions and 51 deletions

3
.gitignore vendored
View File

@ -1,5 +1,4 @@
aliases/enabled */enabled/*
plugins/enabled
.DS_Store .DS_Store
custom/*.bash custom/*.bash
!custom/example.bash !custom/example.bash

View File

@ -46,15 +46,6 @@ alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
alias md='mkdir -p' alias md='mkdir -p'
alias rd=rmdir alias rd=rmdir
# show / hide hidden files
alias showhidden="defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder"
alias hidehidden="defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder"
# display IP address
alias myip="echo ethernet:; ipconfig getifaddr en0; echo wireless:; ipconfig getifaddr en1"
# http://snippets.dzone.com/posts/show/2486
alias killsvn="find . -name ".svn" -type d -exec rm -rf {} \;"
function aliases-help() { function aliases-help() {
echo "Generic Alias Usage" echo "Generic Alias Usage"
echo echo

View File

@ -39,6 +39,8 @@ case $OSTYPE in
;; ;;
esac esac
function git-help() { function git-help() {
echo "Git Custom Aliases Usage" echo "Git Custom Aliases Usage"
echo echo

View File

@ -18,6 +18,3 @@ alias buildsite="builtin cd $JEKYLL_LOCAL_ROOT && rm -rf _site/ && jekyll"
# Rsync the site to the remote server # Rsync the site to the remote server
alias deploysite="builtin cd $JEKYLL_LOCAL_ROOT && rsync -rz _site/ $JEKYLL_REMOTE_ROOT" alias deploysite="builtin cd $JEKYLL_LOCAL_ROOT && rsync -rz _site/ $JEKYLL_REMOTE_ROOT"
alias jkas="jekyll --auto --server"
alias rmjkas="rm -rf _site/* && jkas"

View File

@ -14,7 +14,6 @@ alias dashcode="open -a dashcode"
alias f='open -a Finder ' alias f='open -a Finder '
alias textedit='open -a TextEdit' alias textedit='open -a TextEdit'
alias hex='open -a "Hex Fiend"' alias hex='open -a "Hex Fiend"'
alias gitx="open -a GitX"
if [ -s /usr/bin/firefox ] ; then if [ -s /usr/bin/firefox ] ; then
unalias firefox unalias firefox

View File

@ -17,37 +17,22 @@ do
source $config_file source $config_file
done done
# Tab Completion # Load enabled aliases, completion, plugins
COMPLETION="${BASH}/completion/*.bash" for file_type in "aliases" "completion" "plugins"
for config_file in $COMPLETION
do
source $config_file
done
# Plugins
if [ ! -d "${BASH}/plugins/enabled" ]
then
mkdir "${BASH}/plugins/enabled"
ln -s ${BASH}/plugins/available/* "${BASH}/plugins/enabled"
fi
PLUGINS="${BASH}/plugins/enabled/*.bash"
for config_file in $PLUGINS
do
source $config_file
done
# Aliases
if [ ! -d "${BASH}/aliases/enabled" ]
then
mkdir "${BASH}/aliases/enabled"
ln -s ${BASH}/aliases/available/* "${BASH}/aliases/enabled"
fi
FUNCTIONS="${BASH}/aliases/enabled/*.bash"
for config_file in $FUNCTIONS
do do
if [ ! -d "${BASH}/${file_type}/enabled" ]
then
mkdir "${BASH}/${file_type}/enabled"
ln -s ${BASH}/${file_type}/available/* "${BASH}/${file_type}/enabled"
fi
FILES="${BASH}/${file_type}/enabled/*.bash"
for config_file in $FILES
do
source $config_file source $config_file
done
done done
# Load any custom aliases that the user has added
if [ -e "${BASH}/aliases/custom.aliases.bash" ] if [ -e "${BASH}/aliases/custom.aliases.bash" ]
then then
source "${BASH}/aliases/custom.aliases.bash" source "${BASH}/aliases/custom.aliases.bash"

View File

@ -5,13 +5,6 @@ function git_remote {
git remote add origin $GIT_HOSTING:$1.git git remote add origin $GIT_HOSTING:$1.git
} }
# git add remote branch
function garb() {
echo "Adding remote branch '$1'";
git config branch.$1.remote origin;
git config branch.$1.merge refs/heads/$1;
}
function git_first_push { function git_first_push {
echo "Running: git push origin master:refs/heads/master" echo "Running: git push origin master:refs/heads/master"
git push origin master:refs/heads/master git push origin master:refs/heads/master
@ -99,3 +92,4 @@ else
echo "you're currently not in a git repository" echo "you're currently not in a git repository"
fi fi
} }

View File

@ -93,7 +93,7 @@ function hg_prompt_info() {
branch=$(hg summary 2> /dev/null | grep branch | awk '{print $2}') branch=$(hg summary 2> /dev/null | grep branch | awk '{print $2}')
changeset=$(hg summary 2> /dev/null | grep parent | awk '{print $2}') changeset=$(hg summary 2> /dev/null | grep parent | awk '{print $2}')
echo -e "$prefix${REF_COLOR}${branch}${DEFAULT_COLOR}:${changeset#*:}$state$suffix" echo -e "$prefix$branch:${changeset#*:}$state$suffix"
} }
function rvm_version_prompt { function rvm_version_prompt {