How to apply the changes to my `.zshrc` file after edit?Terminal does not source .zshrc with custom colors for ls and cd commandZsh: Automatically modify executed commandStop zsh from completing parent directoriesHow to switch to root and use same dotfiles as my normal user?ZSH function to edit a file based on an input at the cliDefine paths zsh autocomplete usesHow to disable oh-my-zsh features only in PyCharm terminalUse colon as filename separator in zsh tab completionzsh PATH variable not properly set from another environment variableWhy should anyone ever put anything in /etc/zshenv or ~/.zshenv?
Is DC heating faster than AC heating?
How do these cubesats' whip antennas work?
Is it a bad idea to offer variants of a final exam based on the type of allowed calculators?
How to draw a flow chart?
What does VB stand for?
Does bottle color affect mold growth?
What are the examples (applications) of the MIPs in which the objective function has nonzero coefficients for only continuous variables?
What is an air conditioner compressor hard start kit and how does it work?
Did Captain America make out with his niece?
How many years before enough atoms of your body are replaced to survive the sudden disappearance of the original body’s atoms?
How can I refer to something in a book?
Premier League simulation
Why do private jets such as Gulfstream fly higher than other civilian jets?
Does the United States guarantee any unique freedoms?
Can chords be inferred from melody alone?
Print only the last three columns from file
12V lead acid charger with LM317 not charging
Why don't the open notes matter in guitar chords?
Is a switch from R to Python worth it?
Looking for a new job because of relocation - is it okay to tell the real reason?
Why ReLU function is not differentiable at 0?
How to continue a line in Latex in math mode?
Is there such thing as a "3-dimensional surface?"
Can you use the Help action to give a 2019 UA Artillerist artificer's turret advantage?
How to apply the changes to my `.zshrc` file after edit?
Terminal does not source .zshrc with custom colors for ls and cd commandZsh: Automatically modify executed commandStop zsh from completing parent directoriesHow to switch to root and use same dotfiles as my normal user?ZSH function to edit a file based on an input at the cliDefine paths zsh autocomplete usesHow to disable oh-my-zsh features only in PyCharm terminalUse colon as filename separator in zsh tab completionzsh PATH variable not properly set from another environment variableWhy should anyone ever put anything in /etc/zshenv or ~/.zshenv?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I just edited the .zshrc
file to configure my zsh
on FreeBSD.
For example, updating the PATH
system variable:
path+=/usr/local/openjdk12/bin
How do I make the changes take effect?
Must I logout and login again? Is there a way to immediately run that file?
zsh dot-files
add a comment |
I just edited the .zshrc
file to configure my zsh
on FreeBSD.
For example, updating the PATH
system variable:
path+=/usr/local/openjdk12/bin
How do I make the changes take effect?
Must I logout and login again? Is there a way to immediately run that file?
zsh dot-files
@Sparhawk If logging in & out is the common approach, post that as an Answer and I will accept it.
– Basil Bourque
Jul 28 at 6:45
Okay. I wasn't sure if I was missing something. I've fleshed it out a little and posted an answer.
– Sparhawk
Jul 28 at 7:06
exec zsh
is one way.
– Stéphane Chazelas
Jul 28 at 7:27
add a comment |
I just edited the .zshrc
file to configure my zsh
on FreeBSD.
For example, updating the PATH
system variable:
path+=/usr/local/openjdk12/bin
How do I make the changes take effect?
Must I logout and login again? Is there a way to immediately run that file?
zsh dot-files
I just edited the .zshrc
file to configure my zsh
on FreeBSD.
For example, updating the PATH
system variable:
path+=/usr/local/openjdk12/bin
How do I make the changes take effect?
Must I logout and login again? Is there a way to immediately run that file?
zsh dot-files
zsh dot-files
edited Jul 28 at 13:52
Gilles
568k136 gold badges1168 silver badges1682 bronze badges
568k136 gold badges1168 silver badges1682 bronze badges
asked Jul 28 at 6:13
Basil BourqueBasil Bourque
5414 silver badges16 bronze badges
5414 silver badges16 bronze badges
@Sparhawk If logging in & out is the common approach, post that as an Answer and I will accept it.
– Basil Bourque
Jul 28 at 6:45
Okay. I wasn't sure if I was missing something. I've fleshed it out a little and posted an answer.
– Sparhawk
Jul 28 at 7:06
exec zsh
is one way.
– Stéphane Chazelas
Jul 28 at 7:27
add a comment |
@Sparhawk If logging in & out is the common approach, post that as an Answer and I will accept it.
– Basil Bourque
Jul 28 at 6:45
Okay. I wasn't sure if I was missing something. I've fleshed it out a little and posted an answer.
– Sparhawk
Jul 28 at 7:06
exec zsh
is one way.
– Stéphane Chazelas
Jul 28 at 7:27
@Sparhawk If logging in & out is the common approach, post that as an Answer and I will accept it.
– Basil Bourque
Jul 28 at 6:45
@Sparhawk If logging in & out is the common approach, post that as an Answer and I will accept it.
– Basil Bourque
Jul 28 at 6:45
Okay. I wasn't sure if I was missing something. I've fleshed it out a little and posted an answer.
– Sparhawk
Jul 28 at 7:06
Okay. I wasn't sure if I was missing something. I've fleshed it out a little and posted an answer.
– Sparhawk
Jul 28 at 7:06
exec zsh
is one way.– Stéphane Chazelas
Jul 28 at 7:27
exec zsh
is one way.– Stéphane Chazelas
Jul 28 at 7:27
add a comment |
3 Answers
3
active
oldest
votes
Zsh reads .zshrc
when it starts. You don't need to log out and log back in. Just closing the terminal and opening a new one gives you your new .zshrc
in this new terminal. But you can make this more direct. Just tell zsh to relaunch itself:
exec zsh
If you run this at a zsh prompt, this replaces the current instance of zsh by a new one, running in the same terminal. The new instance has the same environment variables as the previous one, but has fresh shell (non-exported) variables, and it starts a new history (so it'll mix in commands from other terminals in typical configurations). Any background jobs are disowned.
You can also tell zsh to re-read .zshrc
. This has the advantage of preserving the shell history, shell variables, and knowledge of background jobs. But depending on what you put in your .zshrc
, this may or may not work. Re-reading .zshrc
runs commands which may not work, or not work well, if you run them twice.
. ~/.zshrc
There are just too many things you can do to enumerate everything that's ok and not ok to put in .zshrc
if you want to be able to run it twice. Here are just some common issues:
- If you append to a variable (e.g.
fpath+=(~/.config/zsh)
orchpwd_functions+=(my_chpwd)
), this appends the same elements again, which may or may not be a problem. - If you define aliases, and also use the same name as a command, the command will now run the alias. For example, this works:
function foo …
alias foo='foo --common-option'
But this doesn't, because the second time the file is sourced,foo ()
will expand the alias:foo () …
alias foo='foo --common-option' - If you patch an existing zsh function, you'll now be patching your own version, which will probably make a mess.
- If you do something like “swap the bindings of two keys”, that won't do what you want the second time.
add a comment |
Changes to a shells initialisation files will be active in the next shell that you start, for example if you bring up a new graphical terminal or log out and in again. If you've made changes that should affect your desktop environment in some way (I don't know what kind of change that may be), then logging out and in again would be required.
You could source the file with . /path/to/filename
(. ~/.zshrc
in your case) or start a new shell session from the command line with zsh
, but this is almost never a good idea as it may have unwanted consequences such as adding duplicate paths to the $PATH
variable or starting extra ssh-agent
processes or whatever it is you may be doing in that file. The changes would also not be visible program that have already been started.
For a change such as just adding to the $PATH
unconditionally, you could obviously just run the added command in the current shell:
$ path+=/usr/local/openjdk12/bin
This would (in zsh
) add the /usr/local/openjdk12/bin
directory to the end of $PATH
(and to the end of the $path
array in zsh
) in the current shell session. Again, this change to $PATH
would not affect already running processes.
1
Those unwanted consequences would also be triggered if the OP just started a newzsh
shell. It's customary to dotypeset -U path
inzsh
so the$PATH
entries remain always unique.$PATH
is better set in~/.zprofile
though.
– Stéphane Chazelas
Jul 28 at 7:18
add a comment |
You could source the new file, which would work for some changes, possibly including updating the PATH variable (depending on other lines). However, sourcing it would simply run .zshrc
again, and you might execute unexpected duplicate commands. Moreover, if there were deleted lines from the old .zshrc
, then they wouldn't be "erased" from the session.
The cleanest way is to just log out and in again. You'd only need to do it for the terminal session, not the whole desktop environment.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f532548%2fhow-to-apply-the-changes-to-my-zshrc-file-after-edit%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Zsh reads .zshrc
when it starts. You don't need to log out and log back in. Just closing the terminal and opening a new one gives you your new .zshrc
in this new terminal. But you can make this more direct. Just tell zsh to relaunch itself:
exec zsh
If you run this at a zsh prompt, this replaces the current instance of zsh by a new one, running in the same terminal. The new instance has the same environment variables as the previous one, but has fresh shell (non-exported) variables, and it starts a new history (so it'll mix in commands from other terminals in typical configurations). Any background jobs are disowned.
You can also tell zsh to re-read .zshrc
. This has the advantage of preserving the shell history, shell variables, and knowledge of background jobs. But depending on what you put in your .zshrc
, this may or may not work. Re-reading .zshrc
runs commands which may not work, or not work well, if you run them twice.
. ~/.zshrc
There are just too many things you can do to enumerate everything that's ok and not ok to put in .zshrc
if you want to be able to run it twice. Here are just some common issues:
- If you append to a variable (e.g.
fpath+=(~/.config/zsh)
orchpwd_functions+=(my_chpwd)
), this appends the same elements again, which may or may not be a problem. - If you define aliases, and also use the same name as a command, the command will now run the alias. For example, this works:
function foo …
alias foo='foo --common-option'
But this doesn't, because the second time the file is sourced,foo ()
will expand the alias:foo () …
alias foo='foo --common-option' - If you patch an existing zsh function, you'll now be patching your own version, which will probably make a mess.
- If you do something like “swap the bindings of two keys”, that won't do what you want the second time.
add a comment |
Zsh reads .zshrc
when it starts. You don't need to log out and log back in. Just closing the terminal and opening a new one gives you your new .zshrc
in this new terminal. But you can make this more direct. Just tell zsh to relaunch itself:
exec zsh
If you run this at a zsh prompt, this replaces the current instance of zsh by a new one, running in the same terminal. The new instance has the same environment variables as the previous one, but has fresh shell (non-exported) variables, and it starts a new history (so it'll mix in commands from other terminals in typical configurations). Any background jobs are disowned.
You can also tell zsh to re-read .zshrc
. This has the advantage of preserving the shell history, shell variables, and knowledge of background jobs. But depending on what you put in your .zshrc
, this may or may not work. Re-reading .zshrc
runs commands which may not work, or not work well, if you run them twice.
. ~/.zshrc
There are just too many things you can do to enumerate everything that's ok and not ok to put in .zshrc
if you want to be able to run it twice. Here are just some common issues:
- If you append to a variable (e.g.
fpath+=(~/.config/zsh)
orchpwd_functions+=(my_chpwd)
), this appends the same elements again, which may or may not be a problem. - If you define aliases, and also use the same name as a command, the command will now run the alias. For example, this works:
function foo …
alias foo='foo --common-option'
But this doesn't, because the second time the file is sourced,foo ()
will expand the alias:foo () …
alias foo='foo --common-option' - If you patch an existing zsh function, you'll now be patching your own version, which will probably make a mess.
- If you do something like “swap the bindings of two keys”, that won't do what you want the second time.
add a comment |
Zsh reads .zshrc
when it starts. You don't need to log out and log back in. Just closing the terminal and opening a new one gives you your new .zshrc
in this new terminal. But you can make this more direct. Just tell zsh to relaunch itself:
exec zsh
If you run this at a zsh prompt, this replaces the current instance of zsh by a new one, running in the same terminal. The new instance has the same environment variables as the previous one, but has fresh shell (non-exported) variables, and it starts a new history (so it'll mix in commands from other terminals in typical configurations). Any background jobs are disowned.
You can also tell zsh to re-read .zshrc
. This has the advantage of preserving the shell history, shell variables, and knowledge of background jobs. But depending on what you put in your .zshrc
, this may or may not work. Re-reading .zshrc
runs commands which may not work, or not work well, if you run them twice.
. ~/.zshrc
There are just too many things you can do to enumerate everything that's ok and not ok to put in .zshrc
if you want to be able to run it twice. Here are just some common issues:
- If you append to a variable (e.g.
fpath+=(~/.config/zsh)
orchpwd_functions+=(my_chpwd)
), this appends the same elements again, which may or may not be a problem. - If you define aliases, and also use the same name as a command, the command will now run the alias. For example, this works:
function foo …
alias foo='foo --common-option'
But this doesn't, because the second time the file is sourced,foo ()
will expand the alias:foo () …
alias foo='foo --common-option' - If you patch an existing zsh function, you'll now be patching your own version, which will probably make a mess.
- If you do something like “swap the bindings of two keys”, that won't do what you want the second time.
Zsh reads .zshrc
when it starts. You don't need to log out and log back in. Just closing the terminal and opening a new one gives you your new .zshrc
in this new terminal. But you can make this more direct. Just tell zsh to relaunch itself:
exec zsh
If you run this at a zsh prompt, this replaces the current instance of zsh by a new one, running in the same terminal. The new instance has the same environment variables as the previous one, but has fresh shell (non-exported) variables, and it starts a new history (so it'll mix in commands from other terminals in typical configurations). Any background jobs are disowned.
You can also tell zsh to re-read .zshrc
. This has the advantage of preserving the shell history, shell variables, and knowledge of background jobs. But depending on what you put in your .zshrc
, this may or may not work. Re-reading .zshrc
runs commands which may not work, or not work well, if you run them twice.
. ~/.zshrc
There are just too many things you can do to enumerate everything that's ok and not ok to put in .zshrc
if you want to be able to run it twice. Here are just some common issues:
- If you append to a variable (e.g.
fpath+=(~/.config/zsh)
orchpwd_functions+=(my_chpwd)
), this appends the same elements again, which may or may not be a problem. - If you define aliases, and also use the same name as a command, the command will now run the alias. For example, this works:
function foo …
alias foo='foo --common-option'
But this doesn't, because the second time the file is sourced,foo ()
will expand the alias:foo () …
alias foo='foo --common-option' - If you patch an existing zsh function, you'll now be patching your own version, which will probably make a mess.
- If you do something like “swap the bindings of two keys”, that won't do what you want the second time.
answered Jul 28 at 14:06
GillesGilles
568k136 gold badges1168 silver badges1682 bronze badges
568k136 gold badges1168 silver badges1682 bronze badges
add a comment |
add a comment |
Changes to a shells initialisation files will be active in the next shell that you start, for example if you bring up a new graphical terminal or log out and in again. If you've made changes that should affect your desktop environment in some way (I don't know what kind of change that may be), then logging out and in again would be required.
You could source the file with . /path/to/filename
(. ~/.zshrc
in your case) or start a new shell session from the command line with zsh
, but this is almost never a good idea as it may have unwanted consequences such as adding duplicate paths to the $PATH
variable or starting extra ssh-agent
processes or whatever it is you may be doing in that file. The changes would also not be visible program that have already been started.
For a change such as just adding to the $PATH
unconditionally, you could obviously just run the added command in the current shell:
$ path+=/usr/local/openjdk12/bin
This would (in zsh
) add the /usr/local/openjdk12/bin
directory to the end of $PATH
(and to the end of the $path
array in zsh
) in the current shell session. Again, this change to $PATH
would not affect already running processes.
1
Those unwanted consequences would also be triggered if the OP just started a newzsh
shell. It's customary to dotypeset -U path
inzsh
so the$PATH
entries remain always unique.$PATH
is better set in~/.zprofile
though.
– Stéphane Chazelas
Jul 28 at 7:18
add a comment |
Changes to a shells initialisation files will be active in the next shell that you start, for example if you bring up a new graphical terminal or log out and in again. If you've made changes that should affect your desktop environment in some way (I don't know what kind of change that may be), then logging out and in again would be required.
You could source the file with . /path/to/filename
(. ~/.zshrc
in your case) or start a new shell session from the command line with zsh
, but this is almost never a good idea as it may have unwanted consequences such as adding duplicate paths to the $PATH
variable or starting extra ssh-agent
processes or whatever it is you may be doing in that file. The changes would also not be visible program that have already been started.
For a change such as just adding to the $PATH
unconditionally, you could obviously just run the added command in the current shell:
$ path+=/usr/local/openjdk12/bin
This would (in zsh
) add the /usr/local/openjdk12/bin
directory to the end of $PATH
(and to the end of the $path
array in zsh
) in the current shell session. Again, this change to $PATH
would not affect already running processes.
1
Those unwanted consequences would also be triggered if the OP just started a newzsh
shell. It's customary to dotypeset -U path
inzsh
so the$PATH
entries remain always unique.$PATH
is better set in~/.zprofile
though.
– Stéphane Chazelas
Jul 28 at 7:18
add a comment |
Changes to a shells initialisation files will be active in the next shell that you start, for example if you bring up a new graphical terminal or log out and in again. If you've made changes that should affect your desktop environment in some way (I don't know what kind of change that may be), then logging out and in again would be required.
You could source the file with . /path/to/filename
(. ~/.zshrc
in your case) or start a new shell session from the command line with zsh
, but this is almost never a good idea as it may have unwanted consequences such as adding duplicate paths to the $PATH
variable or starting extra ssh-agent
processes or whatever it is you may be doing in that file. The changes would also not be visible program that have already been started.
For a change such as just adding to the $PATH
unconditionally, you could obviously just run the added command in the current shell:
$ path+=/usr/local/openjdk12/bin
This would (in zsh
) add the /usr/local/openjdk12/bin
directory to the end of $PATH
(and to the end of the $path
array in zsh
) in the current shell session. Again, this change to $PATH
would not affect already running processes.
Changes to a shells initialisation files will be active in the next shell that you start, for example if you bring up a new graphical terminal or log out and in again. If you've made changes that should affect your desktop environment in some way (I don't know what kind of change that may be), then logging out and in again would be required.
You could source the file with . /path/to/filename
(. ~/.zshrc
in your case) or start a new shell session from the command line with zsh
, but this is almost never a good idea as it may have unwanted consequences such as adding duplicate paths to the $PATH
variable or starting extra ssh-agent
processes or whatever it is you may be doing in that file. The changes would also not be visible program that have already been started.
For a change such as just adding to the $PATH
unconditionally, you could obviously just run the added command in the current shell:
$ path+=/usr/local/openjdk12/bin
This would (in zsh
) add the /usr/local/openjdk12/bin
directory to the end of $PATH
(and to the end of the $path
array in zsh
) in the current shell session. Again, this change to $PATH
would not affect already running processes.
edited Jul 28 at 7:23
answered Jul 28 at 7:09
Kusalananda♦Kusalananda
158k18 gold badges313 silver badges499 bronze badges
158k18 gold badges313 silver badges499 bronze badges
1
Those unwanted consequences would also be triggered if the OP just started a newzsh
shell. It's customary to dotypeset -U path
inzsh
so the$PATH
entries remain always unique.$PATH
is better set in~/.zprofile
though.
– Stéphane Chazelas
Jul 28 at 7:18
add a comment |
1
Those unwanted consequences would also be triggered if the OP just started a newzsh
shell. It's customary to dotypeset -U path
inzsh
so the$PATH
entries remain always unique.$PATH
is better set in~/.zprofile
though.
– Stéphane Chazelas
Jul 28 at 7:18
1
1
Those unwanted consequences would also be triggered if the OP just started a new
zsh
shell. It's customary to do typeset -U path
in zsh
so the $PATH
entries remain always unique. $PATH
is better set in ~/.zprofile
though.– Stéphane Chazelas
Jul 28 at 7:18
Those unwanted consequences would also be triggered if the OP just started a new
zsh
shell. It's customary to do typeset -U path
in zsh
so the $PATH
entries remain always unique. $PATH
is better set in ~/.zprofile
though.– Stéphane Chazelas
Jul 28 at 7:18
add a comment |
You could source the new file, which would work for some changes, possibly including updating the PATH variable (depending on other lines). However, sourcing it would simply run .zshrc
again, and you might execute unexpected duplicate commands. Moreover, if there were deleted lines from the old .zshrc
, then they wouldn't be "erased" from the session.
The cleanest way is to just log out and in again. You'd only need to do it for the terminal session, not the whole desktop environment.
add a comment |
You could source the new file, which would work for some changes, possibly including updating the PATH variable (depending on other lines). However, sourcing it would simply run .zshrc
again, and you might execute unexpected duplicate commands. Moreover, if there were deleted lines from the old .zshrc
, then they wouldn't be "erased" from the session.
The cleanest way is to just log out and in again. You'd only need to do it for the terminal session, not the whole desktop environment.
add a comment |
You could source the new file, which would work for some changes, possibly including updating the PATH variable (depending on other lines). However, sourcing it would simply run .zshrc
again, and you might execute unexpected duplicate commands. Moreover, if there were deleted lines from the old .zshrc
, then they wouldn't be "erased" from the session.
The cleanest way is to just log out and in again. You'd only need to do it for the terminal session, not the whole desktop environment.
You could source the new file, which would work for some changes, possibly including updating the PATH variable (depending on other lines). However, sourcing it would simply run .zshrc
again, and you might execute unexpected duplicate commands. Moreover, if there were deleted lines from the old .zshrc
, then they wouldn't be "erased" from the session.
The cleanest way is to just log out and in again. You'd only need to do it for the terminal session, not the whole desktop environment.
answered Jul 28 at 7:05
SparhawkSparhawk
11.2k8 gold badges53 silver badges106 bronze badges
11.2k8 gold badges53 silver badges106 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f532548%2fhow-to-apply-the-changes-to-my-zshrc-file-after-edit%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
@Sparhawk If logging in & out is the common approach, post that as an Answer and I will accept it.
– Basil Bourque
Jul 28 at 6:45
Okay. I wasn't sure if I was missing something. I've fleshed it out a little and posted an answer.
– Sparhawk
Jul 28 at 7:06
exec zsh
is one way.– Stéphane Chazelas
Jul 28 at 7:27