Skip to content

Instantly share code, notes, and snippets.

@karlramberg
Created June 5, 2019 21:01
Show Gist options
  • Save karlramberg/ba94979ca6248f73f88fac34a8be3b61 to your computer and use it in GitHub Desktop.
Save karlramberg/ba94979ca6248f73f88fac34a8be3b61 to your computer and use it in GitHub Desktop.
various dotfiles
# if not running interactively, don't do anything
[[ $- != *i* ]] && return
# bash completion
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# run ls with color
alias ls='ls --color=auto'
# command prompt
PS1='\w \\$ '
#aliases
alias rf='rm -rf'
alias ll='ls -1'
alias la='ls -al'
alias hm='cd ~'
# add to path
export PATH="$HOME/.scripts/":$PATH
export PATH="$PATH:/usr/local/go/bin"
export GOPATH="$HOME/Desktop/go"
export PATH="$PATH:$(go env GOPATH)/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment