Browse Source

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

Taylor Bockman 5 years ago
parent
commit
90ea41f662
  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, # 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. # 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 if [ -f ~/.inputrc ]; then
bind -f ~/.inputrc bind -f ~/.inputrc
else else

2
dotfiles/bash/scripts/cgen.sh

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

Loading…
Cancel
Save