@(工作笔记)

oh-my-zsh-record

Alt text

[TOC]


shopt command not found in .bashrc after shell updation

https://stackoverflow.com/questions/26616003/shopt-command-not-found-in-bashrc-after-shell-updation

To place anything in ~/.bashrc:

Switch to bash:

exec bash
Then

source ~/.bashrc
Switching to bash will not effect on new terminal window. But if you want to switch current window to zsh.

Switch to zsh:

exec zsh
reference

Share
Improve this answer
Follow
edited May 23 '17 at 11:47

Community♦
111 silver badge
answered Feb 18 '16 at 7:17

Taimoor Changaiz
8,04233 gold badges4444 silver badges4949 bronze badges
1
This should be the accepted answer according to me since some of the settings are being handled by the software installing and not me personally – David Kabii Oct 29 '19 at 9:54
Thank you for a time saver :) – Amitesh Rai Sep 4 '20 at 15:01
Can I just switch by using bash keyword? – alper Oct 31 '20 at 18:24
I mentioned exec bash above to switch to bash. But if only using bash works then it is ok – Taimoor Changaiz Nov 4 '20 at 5:51
Excelent @TaimoorChangaiz. Thanks! – diegohsi Dec 28 '20 at 2:03

results matching ""

    No results matching ""