Last active
September 1, 2020 00:29
-
-
Save SilkyPants/33bdcc1d56fc1d3358e1e32caa7ead6c to your computer and use it in GitHub Desktop.
Bash/Zsh extension config for my local Development setup. Mainly aimed at Linux
This file contains hidden or 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
| # Add the following to .bashrc or .zshrc | |
| # [[ -f ~/.terminal-conf ]] && . ~/.terminal-conf | |
| #OS Specific exports | |
| if [[ "$OSTYPE" == "darwin"* ]]; then | |
| #MacOS | |
| else | |
| #Linux | |
| export DOTNET_ROOT=/usr/local/share/dotnet | |
| export PATH="$DOTNET_ROOT:$PATH" | |
| export MSBuildSDKsPath="$DOTNET_ROOT/sdk/$(dotnet --version)/Sdks" | |
| # Nicer Copy/Paste commands | |
| alias pbcopy='xclip -selection clipboard' | |
| alias pbpaste='xclip -selection clipboard -o' | |
| # Work VPN helpers | |
| alias nf-up='nmcli con up id NextFaze --ask' | |
| alias nf-down='nmcli con down id NextFaze' | |
| fi | |
| export DEV_HOME="$HOME/Development" | |
| export SDK_HOME="$DEV_HOME/tools" | |
| export GOPATH="$DEV_HOME/go" | |
| export FLUTTER_HOME="$SDK_HOME/flutter" | |
| export PATH="$FLUTTER_HOME/bin:$PATH" | |
| export ANDROID_STUDIO_HOME="$SDK_HOME/android-studio" | |
| export PATH="$ANDROID_STUDIO_HOME/bin:$PATH" | |
| export PATH="$ANDROID_STUDIO_HOME/jre/bin:$PATH" | |
| export ANDROID_SDK_HOME="$SDK_HOME/android-sdk" | |
| export PATH="$ANDROID_SDK_HOME/platform-tools:$PATH" | |
| export PATH="$ANDROID_SDK_HOME/tools:$PATH" | |
| export PATH="$ANDROID_SDK_HOME/emulator:$PATH" | |
| export ANDROID_SDK_ROOT=$ANDROID_SDK_HOME | |
| # Because RVM is a complainer we need this at the start | |
| export GEM_HOME="$HOME/.gem" | |
| export PATH="$GEM_HOME/bin:$PATH" | |
| # Git alias | |
| gitlog-since() { | |
| git log --pretty=format:"• "%s --since=$1 --no-merges --all | |
| } | |
| alias gitlog-today='gitlog-since 5am' | |
| alias git-clean-branches='git branch --merged | grep -v "\*\|main\|master\|develop" | xargs -n 1 git branch -d' | |
| DEFAULT_USER=$LOGNAME | |
| # include flutter completion if it exists | |
| if [[ -f ~/.flutter_completion ]]; then | |
| . ~/.flutter_completion | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment