Skip to content

Commit f1afdf9

Browse files
committed
allow to use nix packages with sudo
1 parent 3c38d3c commit f1afdf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.shrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ esac
8585

8686
# Aliases
8787
# http://askubuntu.com/questions/22037/aliases-not-available-when-using-sudo
88-
alias sudo='sudo '
88+
alias sudo='sudo --preserve-env=PATH env '
8989
# shellcheck disable=SC2262
9090
alias mkdir='mkdir -p -v'
9191
alias ls='ls $LS_OPTIONS'

0 commit comments

Comments
 (0)