Some new bash aliases

This commit is contained in:
Anthony Axenov 2022-10-08 21:49:43 +08:00
parent bc9eb794a8
commit afbb634566
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

View File

@ -6,6 +6,7 @@ alias realias='source ~/.bash_aliases'
alias reload='exec ${SHELL} -l' alias reload='exec ${SHELL} -l'
alias sudo='sudo ' # enable aliases to be sudoed alias sudo='sudo ' # enable aliases to be sudoed
alias g='git' alias g='git'
alias hosts="sudo nano /etc/hosts"
alias ..='cd ..' # zsh builtin alias ..='cd ..' # zsh builtin
alias ~='cd ~' # zsh builtin alias ~='cd ~' # zsh builtin
@ -44,6 +45,19 @@ alias gpg.list='gpg --list-keys --keyid-format SHORT'
alias wine='LANG=ru_RU.utf8 wine' alias wine='LANG=ru_RU.utf8 wine'
alias docker.prune='docker image prune -f; docker network prune -f; docker container prune -f' alias docker.prune='docker image prune -f; docker network prune -f; docker container prune -f'
# https://obsproject.com/forum/threads/how-to-start-virtual-camera-without-sudo-privileges.139783/
alias obscam="sudo modprobe v4l2loopback video_nr=2 card_label='OBS Virtual Camera'"
# https://github.com/ytdl-org/youtube-dl
ytm() {
youtube-dl $1 \
--extract-audio \
--audio-format flac \
--audio-quality 0 \
--format bestaudio \
--output "${HOME}/Музыка/ytm/%(title)s.%(ext)s"
}
docker.ip() { docker.ip() {
if [ "$1" ]; then if [ "$1" ]; then
if [ "$1" = "-a" ]; then if [ "$1" = "-a" ]; then