Please sign in to comment.
add a "load_smartcd" shim to simplify new installs
- Loading branch information...
Showing with 20 additions and 2 deletions.
|@@ -0,0 +1,18 @@|
|if [[ $0 =~ load_smartcd ]]; then|
|echo "This cannot be run as a command, please run"|
|echo " source load_smartcd"|
|# Just loading ~/.smartcd_config would be enough if it|
|# already exists, but for new installs it may not|
|if [[ -f $HOME/.smartcd/lib/core/smartcd ]]; then|
|# TODO: handle system-wide install?|
|[[ -f $HOME/.smartcd_config ]] && source $HOME/.smartcd_config|
|echo 'smartcd not installed yet! Run "make install" or follow the README instructions'|