1
0
Fork 0

bashrc: dirty trick for user alises and envs to be passed with sudo

This commit is contained in:
Pratham Patel 2024-01-09 22:50:29 +05:30
parent 7ebc778a4c
commit ef1f0bbcc4
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ alias mtr='mtr --show-ips --displaymode 0 -o "LDR AGJMXI"'
alias nixcheckconf="rsync --fsync ${RSYNC_OPTIONS} --dry-run --checksum ${HOME}/my-git-repos/pratham/prathams-nixos/nixos-configuration/ /etc/nixos/"
alias prettynixbuild='nix build --log-format internal-json -v . 2>&1 | nom --json'
alias serialterm='clear && picocom --quiet --baud 115200 /dev/ttyUSB0'
alias sudo='sudo --preserve-env=PATH env'
alias unxz='unxz --keep' # override 'unxz' with this to always keep the archive
alias update="source ${HOME}/.bashrc"
alias rgvi='rg --hidden --invert-match --ignore-case'