-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
4e2688e
commit c783352
Showing
11 changed files
with
795 additions
and
0 deletions.
There are no files selected for viewing
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
############################################################################### | ||
# PROMPT SETTINGS | ||
############################################################################### | ||
|
||
PS1="\u@\H\$\w: " | ||
PS2=\$ | ||
|
||
############################################################################### | ||
# OS CUSTOM VARIABLES | ||
############################################################################### | ||
|
||
OS=`uname -s` | ||
case "$OS" in | ||
Linux) | ||
PATH=$HOME/bin:$PATH:/sbin:/usr/sbin | ||
color="--color=auto" | ||
SHELL=/bin/bash | ||
# Keep environment on sudo | ||
alias sudo="sudo -E" | ||
alias sudoroot="sudo" | ||
;; | ||
Darwin) | ||
PS1="\h\$\w: " | ||
PATH=$HOME/bin:/usr/local/sbin:$PATH | ||
color="-G" | ||
SHELL=/usr/local/bin/bash | ||
;; | ||
FreeBSD) | ||
PATH=$HOME/bin:/usr/local/bin:$PATH | ||
color="-G" | ||
SHELL=/usr/local/bin/bash | ||
;; | ||
esac | ||
|
||
############################################################################### | ||
# ENVIRONMENT VARIABLES | ||
############################################################################### | ||
export TERM=xterm-256color | ||
export EDITOR=vim | ||
export CLICOLOR=1 | ||
export LSCOLORS=exfxcxdxbxegedabagacad; | ||
|
||
############################################################################### | ||
# ALIASES | ||
############################################################################### | ||
|
||
# List aliases. | ||
alias ls="ls -F $color" | ||
alias a="ls -alh" | ||
alias l="ls -alh | less" | ||
|
||
#grep alias | ||
alias cgrep="grep -n --colour=auto" | ||
|
||
# Navigation aliases. | ||
alias cl="clear" | ||
alias cdl="cd; clear; title bash 2> /dev/null" | ||
alias pd="pushd" | ||
alias bd="popd" | ||
|
||
# Include custom setup if found. | ||
if [ -d ~/.bashrc.d ]; then | ||
files=`ls -1 ~/.bashrc.d/*.sh 2>/dev/null` | ||
for file in $files; | ||
do | ||
. $file | ||
done | ||
fi | ||
|
||
############################################################################### | ||
# FUNCTIONS | ||
############################################################################### | ||
|
||
ppath() { | ||
local path=`echo $PATH | tr -s '\:' '\n'` | ||
local pathsorted=`echo $PATH | tr -s '\:' '\n' | sort -f` | ||
|
||
cat <<HEREDOC | ||
Path (executed order): | ||
$path | ||
Path (sorted): | ||
$pathsorted | ||
HEREDOC | ||
} | ||
|
||
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Example colordiffrc file for light backgrounds | ||
# | ||
# Set banner=no to suppress authorship info at top of | ||
# colordiff output | ||
banner=no | ||
# By default, when colordiff output is being redirected | ||
# to a file, it detects this and does not colour-highlight | ||
# To make the patch file *include* colours, change the option | ||
# below to 'yes' | ||
color_patches=no | ||
# | ||
# available colours are: white, yellow, green, blue, | ||
# cyan, red, magenta, black, | ||
# darkwhite, darkyellow, darkgreen, | ||
# darkblue, darkcyan, darkred, | ||
# darkmagenta, darkblack | ||
# | ||
# Can also specify 'none', 'normal' or 'off' which are all | ||
# aliases for the same thing, namely "don't colour highlight | ||
# this, use the default output colour" | ||
# | ||
plain=black | ||
newtext=darkgreen | ||
oldtext=red | ||
diffstuff=blue | ||
cvsstuff=darkmagenta |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
progress-bar |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
- defaults: | ||
link: | ||
relink: true | ||
|
||
- clean: ['~'] | ||
|
||
- link: | ||
~/.bashrc: | ||
~/.colordiffrc: | ||
~/.curlrc: | ||
~/.gitconfig: | ||
~/.gitignore: | ||
~/.git-repositories: | ||
~/.liquidprompt.ps1: | ||
~/.liquidpromptrc: | ||
~/.tmux.conf: | ||
~/.vimrc: |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[user] | ||
name = Chad Phillips | ||
email = [email protected] | ||
[color] | ||
diff = auto | ||
status = auto | ||
branch = auto | ||
[alias] | ||
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --name-only | ||
st = status -sb | ||
conflicts = diff --name-only --diff-filter=U | ||
[core] | ||
pager = less -r | ||
excludesfile = ~/.gitignore | ||
[branch] | ||
autosetuprebase = always | ||
[push] | ||
default = simple | ||
|
||
# Kdiff3 integration. | ||
[difftool "kdiff3"] | ||
path = /usr/local/bin/kdiff3 | ||
trustExitCode = false | ||
[difftool] | ||
prompt = false | ||
[diff] | ||
tool = kdiff3 | ||
[mergetool "kdiff3"] | ||
path = /usr/local/bin/kdiff3 | ||
trustExitCode = false | ||
[mergetool] | ||
keepBackup = false | ||
[merge] | ||
tool = kdiff3 | ||
[filter "lfs"] | ||
clean = git-lfs clean %f | ||
smudge = git-lfs smudge %f | ||
required = true | ||
[rebase] | ||
autosquash = true |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#Temp files. | ||
.DS_Store | ||
*~ | ||
*.lock | ||
*.out | ||
*.swp | ||
*.swo | ||
*.temp/ | ||
*.moved/ | ||
|
||
*.scssc | ||
|
||
# Object files. | ||
*.o | ||
*.Plo | ||
*.lib | ||
*.so | ||
*.so.* | ||
*.a | ||
*.la | ||
*.lai | ||
*.dylib | ||
*.pyc | ||
*.pngc | ||
|
||
# Xcode user files. | ||
*.mode1v3 | ||
*.mode2v3 | ||
*.pbxuser | ||
*.perspective | ||
*.perspectivev3 | ||
*.xcuserstate | ||
*~.nib/ | ||
|
||
# Local .vimrc files. | ||
.local.vimrc |
Empty file.
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
|
||
####################################### | ||
# LIQUID PROMPT DEFAULT TEMPLATE FILE # | ||
####################################### | ||
|
||
# Available features: | ||
# LP_BATT battery | ||
# LP_LOAD load | ||
# LP_JOBS screen sessions/running jobs/suspended jobs | ||
# LP_USER user | ||
# LP_HOST hostname | ||
# LP_PERM a colon ":" | ||
# LP_PWD current working directory | ||
# LP_VENV Python virtual environment | ||
# LP_PROXY HTTP proxy | ||
# LP_VCS the content of the current repository | ||
# LP_ERR last error code | ||
# LP_MARK prompt mark | ||
# LP_TIME current time | ||
# LP_TTYN number of current terminal (useful in title for quick switching) | ||
# LP_RUNTIME runtime of last command | ||
# LP_MARK_PREFIX user-defined prompt mark prefix (helpful if you want 2-line prompts) | ||
# LP_PS1_PREFIX user-defined general-purpose prefix (default set a generic prompt as the window title) | ||
# LP_PS1_POSTFIX user-defined general-purpose postfix | ||
# LP_BRACKET_OPEN open bracket | ||
# LP_BRACKET_CLOSE close bracket | ||
|
||
# Remember that most features come with their corresponding colors, | ||
# see the README. | ||
|
||
# add time, jobs, load and battery | ||
LP_PS1="${LP_PS1_PREFIX}${LP_TIME}${LP_BATT}${LP_LOAD}${LP_JOBS}" | ||
# add user, host and permissions colon | ||
LP_PS1="${LP_PS1}${LP_BRACKET_OPEN}${LP_USER}${LP_HOST}${LP_PERM}" | ||
|
||
LP_PS1="${LP_PS1}${LP_PWD}${LP_BRACKET_CLOSE}${LP_VENV}${LP_PROXY}" | ||
|
||
# Add VCS infos | ||
# If root, the info has not been collected unless LP_ENABLE_VCS_ROOT | ||
# is set. | ||
LP_PS1="${LP_PS1}${LP_VCS}" | ||
|
||
# add return code and prompt mark | ||
LP_PS1="${LP_PS1}${LP_RUNTIME}${LP_ERR}${LP_MARK_PREFIX}${LP_MARK}${LP_PS1_POSTFIX}" | ||
|
||
# "invisible" parts | ||
# Get the current prompt on the fly and make it a title | ||
#LP_TITLE="$(_lp_title "$LP_PS1")" | ||
|
||
# Insert it in the prompt | ||
#LP_PS1="${LP_TITLE}${LP_PS1}" | ||
|
||
# vim: set et sts=4 sw=4 tw=120 ft=sh: |
Oops, something went wrong.