Last active
May 7, 2021 09:50
-
-
Save pellared/ad9ad0a2326460c80768a2fbb6cc03c4 to your computer and use it in GitHub Desktop.
Ubuntu settings
This file contains 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 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' |
This file contains 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
# 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