fix keys alias
This commit is contained in:
parent
8d70a8ed89
commit
50a23cf3b7
@ -111,9 +111,9 @@ alias snvim="sudoedit"
|
|||||||
alias genuuid="python -c 'import uuid; print(uuid.uuid4())'"
|
alias genuuid="python -c 'import uuid; print(uuid.uuid4())'"
|
||||||
alias nvim-tmp="$EDITOR $(mktemp)"
|
alias nvim-tmp="$EDITOR $(mktemp)"
|
||||||
alias vim-tmp="$EDITOR $(mktemp)"
|
alias vim-tmp="$EDITOR $(mktemp)"
|
||||||
|
alias wg-easykeys="wg genkey | tee >(wg pubkey)"
|
||||||
|
|
||||||
# Some aliases only make sense if their parent command exists
|
# Some aliases only make sense if their parent command exists
|
||||||
[[ -x "$(command -v wg)" ]] && alias wg-easykeys="wg genkey | tee >(wg pubkey)"
|
|
||||||
[[ -x "$(command -v systemd-resolve)" ]] && alias flush-dns="sudo systemd-resolve --flush-caches"
|
[[ -x "$(command -v systemd-resolve)" ]] && alias flush-dns="sudo systemd-resolve --flush-caches"
|
||||||
[[ -x "$(command -v ykman)" ]] && alias yk-totp="ykman oath accounts code"
|
[[ -x "$(command -v ykman)" ]] && alias yk-totp="ykman oath accounts code"
|
||||||
[[ -x "$(command -v ufw)" ]] && alias ufw-status="sudo ufw status numbered"
|
[[ -x "$(command -v ufw)" ]] && alias ufw-status="sudo ufw status numbered"
|
||||||
|
4
scripts/get-mac-serial
Executable file
4
scripts/get-mac-serial
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
ioreg -l | grep IOPlatformSerialNumber | grep -oE '"([^"]+)"$' | tr -d '"'
|
Loading…
x
Reference in New Issue
Block a user