summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bashrc18
1 files changed, 12 insertions, 6 deletions
diff --git a/bashrc b/bashrc
index 3081691..5e186cf 100644
--- a/bashrc
+++ b/bashrc
@@ -19,6 +19,11 @@ if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
+# add GOBIN
+if [ -d "$HOME/go/bin" ] ; then
+ PATH="$PATH:$HOME/go/bin"
+fi
+
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
@@ -31,11 +36,12 @@ HISTSIZE=1000
HISTFILESIZE=20000
# use colorls if it's installed, plain old ls otherwise
-if command -v colorls > /dev/null ; then
- LS='colorls'
-else
- LS='ls'
-fi
+alias ls='colorls -G'
+# if command -v colorls > /dev/null ; then
+# LS='colorls -G'
+# else
+# LS='ls'
+# fi
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
@@ -75,7 +81,7 @@ reveal () {
# journal funcs
todj () {
CMD=cat
- if [[ $1 = "-vim" ]]; then
+ if [[ $1 = "-v" ]]; then
CMD=vim
fi
$CMD $(find /home/lemon/Notes/journal -name "*$(date '+%Y-%m-%d')*")