bin: add listen & improve shell aliases
This commit is contained in:
parent
84529344b6
commit
9cd13c7073
|
@ -118,8 +118,11 @@ alias v='edit'
|
|||
alias lst='( last; last -f /var/log/wtmp.1 ) | grep -v "pts/" | tac | less +G'
|
||||
alias lar='last | tac'
|
||||
|
||||
# Listen to loopback of mic
|
||||
alias listen='pactl load-module module-loopback; read; pactl unload-module module-loopback'
|
||||
|
||||
alias browse-safe='sudo systemctl disable --now systemd-resolved && sudo rm -f /etc/resolv.conf && echo "nameserver 185.228.168.10" | sudo tee /etc/resolv.conf && sudo chattr +i /etc/resolv.conf'
|
||||
alias browse-unsafe='sudo chattr -i /etc/resolv.conf && sudo mv /etc/resolv.conf /etc/resolv.conf.bak && sudo systemctl enable --now systemd-resolved'
|
||||
alias browse-unsafe='sudo chattr -i /etc/resolv.conf && sudo mv /etc/resolv.conf /etc/resolv.conf.bak && sudo systemctl enable --now systemd-resolved && sleep 100 && browse-safe'
|
||||
|
||||
xo() {
|
||||
while test $# -gt 0; do
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
# diff with pagination
|
||||
diff --color=always -U 2 "$@" | less --quit-if-one-screen
|
||||
diff --color=always --report-identical-files -U 2 "$@" | less --quit-if-one-screen
|
||||
|
|
Loading…
Reference in New Issue