Browse Source

Update cgen to exit right on failure and add alias to bash

master
Taylor Bockman 5 years ago
parent
commit
f80d8d5482
  1. 5
      dotfiles/bash/bashrc
  2. 2
      dotfiles/bash/scripts/cgen.sh

5
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

2
dotfiles/bash/scripts/cgen.sh

@ -9,7 +9,7 @@ then
echo "Name must be specified"
echo ""
echo "./cgen.sh <name> [cmake version] [C Standard]"
return -1
exit -1
fi
if [ -z $cmake_version ]

Loading…
Cancel
Save