bin: add listen & improve shell aliases

This commit is contained in:
xerus2000 2021-01-23 20:00:31 +01:00
parent 84529344b6
commit 9cd13c7073
2 changed files with 5 additions and 2 deletions

View File

@ -118,8 +118,11 @@ alias v='edit'
alias lst='( last; last -f /var/log/wtmp.1 ) | grep -v "pts/" | tac | less +G' alias lst='( last; last -f /var/log/wtmp.1 ) | grep -v "pts/" | tac | less +G'
alias lar='last | tac' 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-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() { xo() {
while test $# -gt 0; do while test $# -gt 0; do

View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
# diff with pagination # 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