diff options
author | Andrew Cady <d@jerkface.net> | 2020-06-18 13:45:33 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2020-06-18 13:45:33 -0400 |
commit | dcb3cee81ef6e1187c075e19021d7f75d1e7c466 (patch) | |
tree | a72869e0069a582487c48e91a5e3d534ccd4b13f /dot/bashrc | |
parent | 8c0771c5b3e5b44a1f1967c2ef51184f1cbdca21 (diff) |
bashrc: now has get_{firefox,stack,spacemacs}
Diffstat (limited to 'dot/bashrc')
-rw-r--r-- | dot/bashrc | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -405,7 +405,7 @@ newfile() | |||
405 | find . -maxdepth 1 -type f -printf "%T@ %f\0" | sort -z -k1,1 -r | head -z -n1 | cut -d' ' -f2 | xargs -0 printf %s | 405 | find . -maxdepth 1 -type f -printf "%T@ %f\0" | sort -z -k1,1 -r | head -z -n1 | cut -d' ' -f2 | xargs -0 printf %s |
406 | } | 406 | } |
407 | 407 | ||
408 | install_spacemacs() | 408 | get_spacemacs() |
409 | { | 409 | { |
410 | if [ -d "$HOME/.emacs.d" ] | 410 | if [ -d "$HOME/.emacs.d" ] |
411 | then return | 411 | then return |
@@ -426,6 +426,23 @@ get_youtube-dl() | |||
426 | fi | 426 | fi |
427 | } | 427 | } |
428 | 428 | ||
429 | get_firefox() | ||
430 | { | ||
431 | # TODO: Make idempotent | ||
432 | # TODO: Use cron | ||
433 | git clone d@cryptonomic.net:public_git/firefox-updater.git | ||
434 | (cd firefox-updater || exit | ||
435 | make) | ||
436 | } | ||
437 | |||
438 | get_stack() | ||
439 | { | ||
440 | if which stack >&- 2>&- | ||
441 | then return | ||
442 | else wget -qO- https://get.haskellstack.org/ | sh | ||
443 | fi | ||
444 | } | ||
445 | |||
429 | local_bashrc=~/.bashrc.$(hostname) | 446 | local_bashrc=~/.bashrc.$(hostname) |
430 | 447 | ||
431 | if [ -f "$local_bashrc" ]; then | 448 | if [ -f "$local_bashrc" ]; then |