bashrc & zshrc: add alias refreshgroups to update groups without logging out. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/ via Google.

This commit is contained in:
Mika Suomalainen 2012-08-30 19:55:53 +03:00
parent dcfad04866
commit ffb00611bd
2 changed files with 7 additions and 0 deletions

3
bashrc
View File

@ -330,6 +330,9 @@ alias myip6="curl -s6 http://icanhazip.com"
# Curl instead of wget with warning
alias wget="echo Running curl -LO instead of wget && curl -LO "
# Update groups without logging out. Requires entering password. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/
alias refrshgroups="exec su -l $USER"
# Allow custom aliases to be put in .aliases or .bash_aliases .
# .aliases

4
zshrc
View File

@ -279,6 +279,10 @@ alias myip6="curl -s6 http://icanhazip.com"
# Curl instead of wget with warning
alias wget="echo Running curl -LO instead of wget && curl -LO "
# Update groups without logging out. Requires entering password. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/
alias refrshgroups="exec su -l $USER"
# .aliases
if [ -f ~/.aliases ]; then
source ~/.aliases