diff --git a/commands/linux.ipynb b/commands/linux.ipynb index abc7230..c341ebe 100644 --- a/commands/linux.ipynb +++ b/commands/linux.ipynb @@ -229,6 +229,50 @@ "language": "python", "metadata": {}, "outputs": [] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Terminal Colors" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Add the following to your ~/.bash_profile:" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "export PS1='\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\W\\[\\033[00m\\]\\$ '\n", + "export CLICOLOR=1\n", + "export LSCOLORS=ExFxBxDxCxegedabagacad\n", + "alias ls='ls -GFh'" + ], + "language": "python", + "metadata": {}, + "outputs": [] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Reload .bash_profile:" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "source ~/.bash_profile" + ], + "language": "python", + "metadata": {}, + "outputs": [] } ], "metadata": {}