Skip to content

Commit

Permalink
💄
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarnette committed Jan 28, 2014
1 parent 794db3f commit da36258
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 80 deletions.
Binary file removed bash/.profile.swp
Binary file not shown.
2 changes: 0 additions & 2 deletions bash/aliases.sh

This file was deleted.

37 changes: 37 additions & 0 deletions bash/functions.sh
@@ -0,0 +1,37 @@
# show friendly current directory or nwo @ branch for repos
function set-terminal-title {
local branch
local title=$(pwd)

title=${title#$SRCPATH/}
title=${title/${HOME}/\~}

if branch=$(git rev-parse --abbrev-ref HEAD 2>/dev/null); then
title="$title @ $branch"
fi

echo -ne "\033]2;$title\007"
}

# cd to a github repo
function gd {
local parent=$(dirname "$1")
local name=$(basename "$1")
local owner=$(basename "$parent")
local nwo="$owner/$name"
local dir="$SRCPATH/$nwo"

[ -e "$dir" ] || git clone "https://github.com/$nwo" "$dir"

cd "$dir"
}

function gda {
gd $1
atom
}

function gdag {
gda $1
github
}
53 changes: 0 additions & 53 deletions bash/git.sh

This file was deleted.

25 changes: 11 additions & 14 deletions bash/main.sh
@@ -1,23 +1,20 @@
export DOTFILES=~/my/dotfiles

source "$DOTFILES/bash/aliases.sh"
source "$DOTFILES/bash/git.sh"

if [ -s "$DOTFILES/bash/private.sh" ]
then source "$DOTFILES/bash/private.sh"
fi

if [ -f "/opt/boxen/env.sh" ] if [ -f "/opt/boxen/env.sh" ]
then source "/opt/boxen/env.sh" then source "/opt/boxen/env.sh"
fi fi


if [ -d $HOME/src/github/app-env ]; then export DOTFILES=~/my/dotfiles
export PATH="$HOME/src/github/app-env/bin:$PATH"
source "$HOME/src/github/app-env/share/app-ps1.sh" source "$DOTFILES/bash/functions.sh"

if [ -s "$DOTFILES/bash/private.sh" ]; then
source "$DOTFILES/bash/private.sh"
fi fi


export EDITOR="atom --wait" export EDITOR="atom --wait"
export GOPATH=$HOME/go
export NODE_NO_READLINE=1 export NODE_NO_READLINE=1
export PATH=$HOME/bin:$PATH export PATH=$HOME/bin:$GOPATH/bin:$PATH
export PS1='$(app-ps1 "%s ")$(__git_ps1 "[%s] ")\w\\$ ' export PROMPT_COMMAND="set-terminal-title"
export PS1=""
export SRCPATH=$HOME/src
export VISUAL=$EDITOR export VISUAL=$EDITOR
12 changes: 8 additions & 4 deletions gitconfig
Expand Up @@ -7,15 +7,19 @@
[credential] [credential]
helper = /opt/boxen/bin/boxen-git-credential helper = /opt/boxen/bin/boxen-git-credential


[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f

[github] [github]
user = jbarnette user = jbarnette


[hub] [hub]
protocol = https protocol = https


[push] [push]
default = current default = simple
helper = /opt/boxen/bin/boxen-git-credential
[user] [user]
name = John Barnette name = John Barnette
email = jbarnette@github.com email = jbarnette@github.com
7 changes: 0 additions & 7 deletions install.sh

This file was deleted.

0 comments on commit da36258

Please sign in to comment.