diff options
-rw-r--r-- | .bashrc | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -30,19 +30,6 @@ swaylock vdirsyncer ' -# check for missing programs -echo "$PROGRAMS" | while read -r program -do - if [ "$program" == '' ] - then - continue - fi - if ! command -v "$program" > /dev/null 2>&1 - then - echo "Program is missing: '$program'" - fi -done - # alias definitions alias ls='ls --color=auto' alias ll='ls -alF' @@ -79,6 +66,20 @@ alias zephyr='export ZEPHYR_BASE="${HOME}/zephyrproject/zephyr" && source "${HOM PATH=~/.local/bin:$PATH +# check for missing programs +echo "$PROGRAMS" | while read -r program +do + if [ "$program" == '' ] + then + continue + fi + if ! command -v "$program" > /dev/null 2>&1 + then + echo "Program is missing: '$program'" + fi +done + + parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } |