Skip to content

Instantly share code, notes, and snippets.

@JasonThomasData
Last active February 10, 2023 10:53
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 JasonThomasData/ed3a43ee5844d2646189a9703a3c58e5 to your computer and use it in GitHub Desktop.
Save JasonThomasData/ed3a43ee5844d2646189a9703a3c58e5 to your computer and use it in GitHub Desktop.
alias checkDNS="( nmcli dev list || nmcli dev show ) 2>/dev/null | grep DNS && echo 'Do this:' && echo 'nmcli con mod <devicename> ipv4.dns \"208.67.222.222 208.67.220.220\" && systemctl restart network-manager.service' && echo 'Do - \"nmcli c\" to get device name.'"
alias uuid="python3 -c 'import sys,uuid; sys.stdout.write(uuid.uuid4().hex)' | pbcopy && pbpaste && echo"
alias kp="keepass2 ~/keepass/passwords.kdbx"
alias clearTmp="sudo rm -r /tmp/*"
alias ls="ls -F --color=auto"
alias vim="vim -c :Vex"
alias nvim="nvim -c :Vex"
alias ct="ctags -R ."
alias brightness="xrandr --output eDP-1 --brightness"
alias hl="highlight --force"
alias comm="comm -12i"
alias va="source venv/bin/activate"
alias jn="jupyter notebook"
alias v="vim"
alias g="git"
alias l="ls"
alias c="comm"
alias d="diff"
alias moi="cd ~/src/mathematicsOfInterest"
# For vi in terminal. This is the best thing since Wham
# See here for explainer -- https://sanctum.geek.nz/arabesque/vi-mode-in-bash/
set -o vi
export TERM=xterm-256color
export PATH=~/.local/bin:$PATH
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
# For android dev
export ANDROID_HOME=/home/john/Android/Sdk/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment