From 85a316fc29558a72c1af44fa6a6ff2f6fc323442 Mon Sep 17 00:00:00 2001 From: Donne Martin Date: Sat, 28 Feb 2015 12:40:18 -0500 Subject: [PATCH] Added instructions on how to add terminal colors by editing your .bash_profile. --- commands/linux.ipynb | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) 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": {}