Commit Graph

7 Commits

Author SHA1 Message Date
569598683e Fixed bad XDG CONFIG value.
Not sure why I thought it would be DIR instead of HOME but I blame
poorly executed theft.
2019-11-22 14:53:31 -05:00
cc1893d6b5 Added SSH awareness.
This should be used with

```
ifndef IS_SSH
```

I will try and move IS_MAC and IS_LINUX to work with this as well. Issue I'm
having is or statements.
2019-05-16 20:13:40 -04:00
3fcd8d81e5 Updated report to use unicode X. Matches rest of pattern. 2019-05-02 00:48:47 -04:00
e5b9486fb3 Added Truthy shortcut for return val.
I don't really like the feel of this but this allows us to call
$(return_val_truthy) to output a value of tue or false based on the retrun value
of the last command. This saves us from having to do make the call ` && echo
true || echo false`.

I will probaby switch this in the future to just have a `echo $?` function
instead. Then check if returnVal == zero. If I do that I will also need to
change the way OS works, requiring true => 0 and false => 1, which is a little
bit conter to how it should be.
2019-04-30 23:22:02 -04:00
30b0cc68ae Adding makefile for all current configurations. 2019-04-27 18:21:33 -04:00
e49934c99d Adding shared makefile logic and helper scripts
Shared logic can be imported via `include ../lib/shared.mk`
Helper functions include 3 current opperations

1. mk_link:: This will create a symbolic link if the file doesn't already exist.
2. rm_link:: Will remove the link if it is a symlink.
3. report :: This color codes the status of a message and adds a leading symbol.

report also can be called with `LAST_RETURN=$? report "message"`
and will expand this to be either `report info "message"` Or `report error
"message"` based on the last return value.
Current status are info, warn, and error.
2019-04-27 18:09:36 -04:00
649b158166 relocated bin -> lib
lib will be more accurate since a lot of these aren't going to be bin stubs.
2019-04-27 18:07:48 -04:00