commit
42dceab710
@ -0,0 +1,2 @@
|
||||
# ignore private file
|
||||
private
|
@ -0,0 +1,53 @@
|
||||
########################################################################
|
||||
# bash_profile, basically from the whole internet
|
||||
# and a lot from @necolas, @mathiasbynens & @rtomayko
|
||||
#
|
||||
# https://github.com/mathiasbynens/dotfiles
|
||||
# https://github.com/necolas/dotfiles
|
||||
# https://github.com/rtomayko/dotfiles
|
||||
########################################################################
|
||||
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Load ~/.extra, ~/.bash_prompt
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
for file in ~/.{extra,bash_prompt}; do
|
||||
[ -r "$file" ] && source "$file"
|
||||
done
|
||||
unset file
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# SHELL OPTIONS
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
# fuck that you have new mail shit
|
||||
unset MAILCHECK
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# PATH
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
|
||||
PATH="/usr/local/bin:/usr/local/mysql/bin:$PATH"
|
||||
# Android SDK
|
||||
PATH="~/Dropbox/Code/android-sdk/tools:~/Dropbox/Code/android-sdk/platform-tools:$PATH"
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# ALIASES
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
alias ll='ls -la'
|
||||
# Get into main server FAST. Server & port are in .ssh/config
|
||||
alias krlc='ssh kremalicious'
|
||||
# Terminal needs more Espresso
|
||||
alias esp="open -a Espresso"
|
||||
# Get OS X Software Updates, update Homebrew itself, and upgrade installed Homebrew packages
|
||||
alias update='sudo softwareupdate -i -a; brew update; brew upgrade'
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# LSCOLORS
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
export CLICOLOR=1
|
||||
export LSCOLORS=gxfxcxdxbxegedabagacad
|
@ -0,0 +1,43 @@
|
||||
########################################################################
|
||||
# Le Git Config
|
||||
########################################################################
|
||||
|
||||
[user]
|
||||
email = desk@kremalicious.com
|
||||
name = Matthias Kretschmann
|
||||
[github]
|
||||
user = kremalicious
|
||||
[credential]
|
||||
helper = osxkeychain
|
||||
[core]
|
||||
excludesfile = ~/.gitignore_global
|
||||
quotepath = false
|
||||
[color]
|
||||
diff = auto
|
||||
status = auto
|
||||
branch = auto
|
||||
interactive = auto
|
||||
ui = auto
|
||||
[color "branch"]
|
||||
current = green bold
|
||||
local = green
|
||||
remote = red bold
|
||||
[color "diff"]
|
||||
meta = yellow bold
|
||||
frag = magenta bold
|
||||
old = red bold
|
||||
new = green bold
|
||||
[color "status"]
|
||||
added = green bold
|
||||
changed = yellow bold
|
||||
untracked = red
|
||||
[push]
|
||||
#'git push' only the current branch
|
||||
default = current
|
||||
[alias]
|
||||
s = status
|
||||
a = !git add . && git status
|
||||
c = commit
|
||||
cm = commit -m
|
||||
l = log --graph --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset'
|
||||
ll = log --stat --abbrev-commit
|
@ -0,0 +1,85 @@
|
||||
########################################################################
|
||||
# global ignored files
|
||||
########################################################################
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# OS generated files
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
.DS_Store
|
||||
Icon?
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
Thumbs.db
|
||||
thumbs.db
|
||||
|
||||
# Files that might appear on external disk
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Other Version Control
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
.svn/
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Logs and databases
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
*.log
|
||||
*.sql
|
||||
*.sqlite
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Espresso project files
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
*.esproj
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# WordPress
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
#.htaccess
|
||||
wp-activate.php
|
||||
wp-app.php
|
||||
wp-atom.php
|
||||
wp-blog-header.php
|
||||
wp-comments-post.php
|
||||
wp-commentsrss2.php
|
||||
wp-config-sample.php
|
||||
#wp-config.php
|
||||
wp-cron.php
|
||||
wp-feed.php
|
||||
wp-links-opml.php
|
||||
wp-load.php
|
||||
wp-login.php
|
||||
wp-mail.php
|
||||
wp-pass.php
|
||||
wp-rdf.php
|
||||
wp-register.php
|
||||
wp-rss.php
|
||||
wp-rss2.php
|
||||
wp-settings.php
|
||||
wp-signup.php
|
||||
wp-trackback.php
|
||||
xmlrpc.php
|
||||
wp-admin/
|
||||
wp-includes/
|
||||
*/wp-content/uploads/
|
||||
wp-content/upgrade/*
|
||||
wp-content/backup-db/*
|
||||
wp-content/advanced-cache.php
|
||||
wp-content/wp-cache-config.php
|
||||
wp-content/cache/*
|
||||
wp-content/cache/supercache/*
|
||||
*/wp-content/gallery/*
|
||||
*/wp-content/plugins/
|
||||
sitemap.xml
|
||||
sitemap.xml.gz
|
||||
*/wp-content/index.php
|
||||
*/wp-content/themes/index.php
|
||||
*/wp-content/themes/twentyeleven/
|
||||
*/wp-content/languages/
|
@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# creates symlinks from the home directory to
|
||||
# any desired dotfiles in ~/dotfiles
|
||||
#
|
||||
# adapted from @michaeljsmalley
|
||||
# https://github.com/michaeljsmalley/dotfiles/blob/master/makesymlinks.sh
|
||||
########################################################################
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Variables
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
# dotfiles directory
|
||||
dir=~/.dotfiles
|
||||
# list of files/folders to symlink in homedir
|
||||
files="bash_profile bash_prompt gitconfig gitignore_global hushlogin private"
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# change to the dotfiles directory
|
||||
# ----------------------------------------------------------------------
|
||||
echo "Changing to the $dir directory"
|
||||
cd $dir
|
||||
echo "...done"
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# create symlinks from the homedir to any files in the ~/dotfiles directory
|
||||
# specified in $files
|
||||
# ----------------------------------------------------------------------
|
||||
for file in $files; do
|
||||
echo "Creating symlink to $file in home directory."
|
||||
ln -s $dir/$file ~/.$file
|
||||
done
|
||||
|
||||
echo "...all done"
|
@ -0,0 +1,45 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Pull in changes and make new symlinks
|
||||
#
|
||||
# adapted from @mathiasbynens & @michaeljsmalley
|
||||
# https://github.com/mathiasbynens/dotfiles/blob/master/bootstrap.sh
|
||||
# https://github.com/michaeljsmalley/dotfiles/blob/master/makesymlinks.sh
|
||||
########################################################################
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Variables
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
# dotfiles directory
|
||||
dir=~/.dotfiles
|
||||
# list of files/folders to symlink in homedir
|
||||
files="bash_profile bash_prompt gitconfig gitignore_global hushlogin private"
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# change to the dotfiles directory
|
||||
# ----------------------------------------------------------------------
|
||||
echo "Changing to the $dir directory"
|
||||
cd $dir
|
||||
echo "...done"
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# pull in changes
|
||||
# ----------------------------------------------------------------------
|
||||
echo "Getting changes"
|
||||
git pull
|
||||
echo "...done"
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# create symlinks from the homedir to any files in the ~/dotfiles directory
|
||||
# specified in $files
|
||||
# ----------------------------------------------------------------------
|
||||
for file in $files; do
|
||||
echo "Removing any existing dotfiles from ~"
|
||||
rm ~/.$file
|
||||
echo "...done"
|
||||
echo "Creating symlink to $file in home directory."
|
||||
ln -s $dir/$file ~/.$file
|
||||
done
|
||||
|
||||
echo "...all done"
|
Loading…
Reference in new issue