Skip to content

Instantly share code, notes, and snippets.

@pellared
Last active May 7, 2021 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pellared/ad9ad0a2326460c80768a2fbb6cc03c4 to your computer and use it in GitHub Desktop.
Save pellared/ad9ad0a2326460c80768a2fbb6cc03c4 to your computer and use it in GitHub Desktop.
Ubuntu settings
alias sa='eval `ssh-agent -s` && ssh-add ~/.ssh/id_rsa'
alias gm='B=`git branch --show-current` ; git checkout master ; git branch -D $B ; git pull -p'
alias gc='git checkout -b '
alias gsync='git checkout main && git fetch -p upstream && git rebase upstream/main && git push'
alias gake='go run ./build'
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then # SSH mode
export EDITOR="nano"
else # Local terminal mode
export EDITOR="code -w"
fi
# setup Go
export GOPATH=$HOME/go
PATH=$GOPATH/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment