mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-01-03 16:52:37 +01:00
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:
parent
dcfad04866
commit
ffb00611bd
3
bashrc
3
bashrc
@ -330,6 +330,9 @@ alias myip6="curl -s6 http://icanhazip.com"
|
|||||||
# Curl instead of wget with warning
|
# Curl instead of wget with warning
|
||||||
alias wget="echo Running curl -LO instead of wget && curl -LO "
|
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 .
|
# Allow custom aliases to be put in .aliases or .bash_aliases .
|
||||||
|
|
||||||
# .aliases
|
# .aliases
|
||||||
|
4
zshrc
4
zshrc
@ -279,6 +279,10 @@ alias myip6="curl -s6 http://icanhazip.com"
|
|||||||
# Curl instead of wget with warning
|
# Curl instead of wget with warning
|
||||||
alias wget="echo Running curl -LO instead of wget && curl -LO "
|
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
|
# .aliases
|
||||||
if [ -f ~/.aliases ]; then
|
if [ -f ~/.aliases ]; then
|
||||||
source ~/.aliases
|
source ~/.aliases
|
||||||
|
Loading…
Reference in New Issue
Block a user