From 8994fd417c877e701824e142a92dbe10304a462e Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 20 Apr 2022 09:09:37 +0100 Subject: added go bin, amended flag on a func --- bashrc | 18 ++++++++++++------ 1 file 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')*") -- cgit v1.2.3