Last active
March 2, 2020 16:31
-
-
Save jfeilbach/bcc72c4a1e74f4bea06963321ae35d04 to your computer and use it in GitHub Desktop.
.bashrc for Ubuntu 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
alias p='/usr/bin/python3.7' | |
alias auth='/usr/bin/oathtool --totp -b <private key> | pbcopy' | |
alias auth2='/usr/bin/oathtool --totp -b <private key> | pbcopy' | |
alias btc='curl https://rate.sx/btc' | |
alias fw='/home/jason/auth.sh' | |
alias weather='curl -s https://wttr.in/South_Jordan | head -n -2' | |
alias rr='if [ -f /var/run/reboot-required ]; then echo "reboot required"; else echo "No reboot needed"; fi' | |
alias gh='/home/jason/get_aws_host.sh' | |
alias sshbast='fed up di && auth && ssh -A -i ~/.ssh/id_rsa -o VisualHostKey=yes $FED_USER@$FED_HOST' | |
alias sshbastdi='fed up di && auth && ssh di' | |
alias sshbastdev='fed up di && auth && ssh dev' | |
alias sshgz='/usr/local/bin/gz_auth.sh on && auth && ssh gz' | |
alias vi='vim' | |
alias ffmpeg='ffmpeg -hide_banner -loglevel warning -stats' | |
alias fa='/home/jason/Documents/fa.sh' | |
if [ ! $(uname -s) = "Darwin" ]; then | |
alias pbcopy='xclip -selection clipboard' | |
alias pbpaste='xclip -selection clipboard -o' | |
fi | |
# Set git to use the credential memory cache | |
git config --global credential.helper cache | |
# Set the cache to timeout after 12 hours (setting is in seconds) | |
git config --global credential.helper 'cache --timeout=43200' | |
export FED_USERNAME='secret' | |
if [ -z "$SSH_AUTH_SOCK" ] ; then | |
eval `ssh-agent -s` | |
ssh-add | |
fi | |
eval `keychain --agents ssh --eval id_rsa` | |
eval `keychain --agents ssh --eval id_ed25519` | |
eval `keychain --agents ssh --eval id_ed25519.other` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment