In ~/.bash_profile or ~/.bashrc (whichever you
use)
alias ebash="sudo vi ~/.bash_profile"
alias rbash="source ~/.bash_profile"
Change ~/.bash_profile to ~/.bashrc if you're
using the latter.
When you need to edit your bash config, you can
| try { | |
| JSON.parse(jsonSource); | |
| } catch (e) {} | |
In ~/.bash_profile or ~/.bashrc (whichever you
use)
alias ebash="sudo vi ~/.bash_profile"
alias rbash="source ~/.bash_profile"
Change ~/.bash_profile to ~/.bashrc if you're
using the latter.
When you need to edit your bash config, you can
| class MyComponent extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this._myHandlerFunc = this._myHandlerFunc.bind(this); | |
| } | |
| _myHandlerFunc() { | |
| // do something | |
| } |