This file contains hidden or 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
| PROMPT='%{$fg[blue]%}%~%b%{$reset_color%} $(git_time_since_commit)$(check_git_prompt_info) | |
| %% ' | |
| RPROMPT='%{$fg[blue]%}%n%{$reset_color%}@%{$fg[red]%}%M%{$reset_color%}' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%})" | |
| # Text to display if the branch is dirty | |
| ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} ✘%{$reset_color%}" |
This file contains hidden or 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
| map <leader>i mmgg=G`m<CR> | |
| map <leader>i mxgg=G`x<CR> |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| cd | |
| git clone https://gist.github.com/8797857.git gitconfig | |
| ln -s ~/gitconfig/.gitconfig ~/.gitconfig |
This file contains hidden or 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
| ZSH=$HOME/.oh-my-zsh | |
| ZSH_THEME="geopet" | |
| DISABLE_AUTO_TITLE="true" | |
| plugins=( | |
| git | |
| colored-man | |
| tmux | |
| ) |
This file contains hidden or 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
| [alias] | |
| ff = merge --ff-only | |
| [user] | |
| email = [email protected] | |
| name = Geoff Petrie | |
| [color] | |
| ui = true | |
| [core] | |
| editor = vim | |
| [push] |
This file contains hidden or 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
| require 'rubygems' | |
| require 'interactive_editor' | |
| require 'awesome_print' | |
| AwesomePrint.irb! | |
| IRB.conf[:PROMPT_MODE] = :SIMPLE | |
| IRB.conf[:EVAL_HISTORY] = 1000 | |
| IRB.conf[:SAVE_HISTORY] = 1000 |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| cd | |
| rm -rf ~/.vim | |
| rm -rf ~/.vimrc | |
| rm -rf ~/.gvimrc | |
| git clone [email protected]:geopet/dotvim.git ~/.vim | |
| ln -s ~/.vim/vimrc ~/.vimrc | |
| ln -s ~/.vim/gvimrc ~/.gvimrc | |
| cd ~/.vim |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| cd | |
| sudo rm -rf /usr/local/bin/ruby | |
| wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.gz | |
| tar -xzvf ruby-2.1.3.tar.gz | |
| cd ruby-2.1.3 | |
| ./configure | |
| make | |
| sudo make install |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| cd | |
| # remove current vim directories | |
| rm -rf ~/.vim | |
| rm -rf ~/.vimrc | |
| rm -rf ~/.gvimrc |
This file contains hidden or 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
| console.log('Starting app.'); | |
| const fs = require('fs'); | |
| const os = require('os'); | |
| const user = os.userInfo(); | |
| fs.appendFile('greetings.txt', `Hello, ${user.username}.`, function(err) { | |
| if (err) { | |
| console.log('Unable to write to file'); |