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
Showing
7 changed files
with
56 additions
and
80 deletions.
There are no files selected for viewing
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 | |||
} |
This file was deleted.
Oops, something went wrong.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |
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
This file was deleted.
Oops, something went wrong.