From 25055bf7242a3686f12ba23ccdfd03063f8b7c91 Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Fri, 3 Jul 2020 19:58:02 +0200 Subject: [PATCH] Remove vars dependency --- cv | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/cv b/cv index 54296d5..304d4c5 100755 --- a/cv +++ b/cv @@ -1,20 +1,14 @@ #!/bin/bash -if [ -f /usr/local/bin/vars ] -then - . /usr/local/bin/vars -else - # This is a compatibility mode and not well-supported. - ex(){ - echo -e "\\033[0;32m> ${*} \\033[0m" - $@ - } - date=$(date +"%Y-%m-%d") - ydate=$(date -d yesterday +"%Y-%m-%d") - show(){ - echo -e "\\033[1;36m> ${*} \\033[0m" - } -fi +ex(){ + echo -e "\\033[0;32m> ${*} \\033[0m" + $@ +} +date=$(date +"%Y-%m-%d") +ydate=$(date -d yesterday +"%Y-%m-%d") +show(){ + echo -e "\\033[1;36m> ${*} \\033[0m" +} data="$HOME/Documents/cv"