Gentoo Archives: gentoo-user

From: tuxic@××××××.de
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] Autoexecute when "returning" from sudo ?
Date: Wed, 31 Oct 2018 08:49:41
Message-Id: 20181031085021.xcrdtqcoqeucmv35@solfire
1 Hi,
2
3 often I have this scenario:
4 I miss an application/script, a setting or something like that.
5 To apply the modifikation I becom root from the shell I was using as user.
6 I modificate/install or whatever change is needed...
7 I CTRL-D back to my user shell.
8
9 Now I have to do a "rehash" (I am using zsh) to make the change
10 visible/accessible. Sometimes I forget that.
11
12 So...is it possible to auto-execute a "rehash" or whatever is needed,
13 when the user is comeing back from his alternate life as root?
14
15 Thanks a lot for any help in advance!
16 Cheers!
17 Meino

Replies

Subject Author
Re: [gentoo-user] Autoexecute when "returning" from sudo ? Anton Molyboha <anton.stay.connected@×××××.com>