diff --git a/dotfiles/bash/bashrc b/dotfiles/bash/bashrc index e60b812..870128f 100644 --- a/dotfiles/bash/bashrc +++ b/dotfiles/bash/bashrc @@ -1,6 +1,11 @@ # Use the iterm2 material theme in the root directory of the essentials repository. For linux, # you will need to source a material theme color scheme for your terminal. +symlink_dir=$( cd "$( dirname "`readlink -f ${BASH_SOURCE[0]}`" )" && pwd ) + +# Useful global functions +alias cgen=$symlink_dir/scripts/cgen.sh + if [ -f ~/.inputrc ]; then bind -f ~/.inputrc else diff --git a/dotfiles/bash/scripts/cgen.sh b/dotfiles/bash/scripts/cgen.sh index ef4569b..6f40b8b 100755 --- a/dotfiles/bash/scripts/cgen.sh +++ b/dotfiles/bash/scripts/cgen.sh @@ -9,7 +9,7 @@ then echo "Name must be specified" echo "" echo "./cgen.sh [cmake version] [C Standard]" - return -1 + exit -1 fi if [ -z $cmake_version ]