Skip to content

Instantly share code, notes, and snippets.

@RobRuana
RobRuana / .bash_profile
Created February 10, 2015 08:06
Basic .bash_profile that relies on .bashrc for customization
#--------------------------------------------------------
# ~/.bash_profile - executed by bash for login shells
#--------------------------------------------------------
# Include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
@RobRuana
RobRuana / .bashrc
Last active September 29, 2019 12:31
Customize bash for interactive shells
#--------------------------------------------------------
# Customize bash for interactive shells
#--------------------------------------------------------
# Source global definitions (if any)
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Environment variable exports (if any)
@RobRuana
RobRuana / gohere
Last active July 24, 2023 10:51
Change $GOPATH to current directory to quickly switch between Go workspaces
#!/bin/bash -l
# Save this file in /usr/local/bin and chmod a+x for easy access
# Execute gohere to switch $GOPATH to current directory
# Type exit to switch back
# Example usage:
# $ echo $GOPATH
#