Skip to content

Instantly share code, notes, and snippets.

View edjames's full-sized avatar

Ed James edjames

View GitHub Profile
@edjames
edjames / workflow-cli
Created November 22, 2017 15:54
workflow-cli
#!/usr/bin/env ruby
require 'thor'
require 'readline'
begin
require 'tracker_api'
rescue LoadError
puts 'Please install the tracker_api gem.'
puts 'Exiting ...'
@edjames
edjames / .bash_logout
Created February 16, 2018 11:13
Digital Ocean .bash_logout
# ~/.bash_logout
# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi
@edjames
edjames / .bash_login
Last active February 18, 2019 16:51
Digital Ocean .bash_login
# ~/.bash_login
export PS1="\e[36;1m\]>\e[93;1m\] changeme \e[36;1m\]\W\e[0m\] "
alias d='docker'
alias dco='docker-compose'
alias da="direnv allow"
alias ..='cd ..'
@edjames
edjames / .bashrc
Created February 16, 2018 11:19
Digital Ocean .bashrc
# ~/.bashrc
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
HISTCONTROL=ignoreboth