Commit 0a2cf673 authored by Martin Janů's avatar Martin Janů 🌱
Browse files

Pass SSH_CLIENT variable through sudo

parent c229ed31
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -8,6 +8,12 @@ setopt appendhistory
setopt histignorespace
setopt histignorespace
###
###


### Pass SSH_CLIENT variable through sudo
sudo() {
    sudo SSH_CLIENT="$SSH_CLIENT" $@
}
###

### Modules
### Modules
if [[ $HOST = "aisa.fi.muni.cz" || $HOST =~ "nymfe??" ]]; then
if [[ $HOST = "aisa.fi.muni.cz" || $HOST =~ "nymfe??" ]]; then
    module add ghc
    module add ghc