Skip to content

Instantly share code, notes, and snippets.

@mbauhardt
mbauhardt / configure-oh-my-zsh.zsh
Created March 12, 2013 21:59
Zsh file to configure my ohmyzsh installation
function cloneGit {
local folder=$1
local url=$2
if [ ! -d "$folder" ]
then
git clone $url $folder
fi
}
function enableCustomTheme {
@mbauhardt
mbauhardt / copyfile.plugin.zsh
Last active December 14, 2015 19:29
an ohmyzsh plugin to copy the content of a file into the clipboard. _pbcopy_ is required.
function copyfile {
[[ "$#" != 1 ]] && return 1
local file_to_copy=$1
cat $file_to_copy | pbcopy
}
@mbauhardt
mbauhardt / copydir.plugin.zsh
Created March 11, 2013 19:34
A plugin for ohmyzsh which copies the current directory into the clipboard. _pbcopy_ is required.
function copydir {
pwd | tr -d "\r\n" | pbcopy
}
@mbauhardt
mbauhardt / antw.plugin.zsh
Created March 11, 2013 19:31
ohmyzsh plugin for antw. See http://antw.cc
function antw {
if [[ -z $ANTW_HOME ]]; then
ANTW_HOME=$HOME/.antw/install
fi
$ANTW_HOME/bin/antw $@
}
compdef _ant antw
function antw-update {
if [[ -z $ANTW_HOME ]]; then
@mbauhardt
mbauhardt / README.md
Last active December 10, 2015 20:28
This shell script is an update client for dtdns.com. The client update the dynamic ip for a given host
@mbauhardt
mbauhardt / README.md
Created September 30, 2012 10:34 — forked from agnoster/README.md
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@mbauhardt
mbauhardt / gist:1879204
Created February 21, 2012 21:47
install antw via curl
curl -L https://raw.github.com/mbauhardt/antw/latest/src/main/scripts/antw-checkout.sh | sh
@mbauhardt
mbauhardt / git_log.rb
Created August 9, 2011 12:26
a ruby script that shows a tuned git log like a news ticker
#! /usr/bin/env ruby
loop do
system("clear")
puts 'Last Un-Committed-Changes... ' + Time.now.inspect
system("git status -s")
sleep(10)