You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
429B

  1. # Create a new directory and enter it
  2. function mkd() {
  3. mkdir -p "$argv";cd "$argv";
  4. }
  5. # Wraps opening a tomb with removing swap and readding it later (hard coded for Roxie's method of swapfiles)
  6. function tombs() {
  7. sudo swapoff -a
  8. tomb $@
  9. sudo swapon /swapfile
  10. swapon --show
  11. }
  12. totp_uri() {
  13. # Args are Secret - Username - Provider
  14. echo "otpauth://totp/${2}?secret=${1}&issuer=${3}"
  15. }