summaryrefslogtreecommitdiff
path: root/dot/bashrc
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-06-18 13:45:33 -0400
committerAndrew Cady <d@jerkface.net>2020-06-18 13:45:33 -0400
commitdcb3cee81ef6e1187c075e19021d7f75d1e7c466 (patch)
treea72869e0069a582487c48e91a5e3d534ccd4b13f /dot/bashrc
parent8c0771c5b3e5b44a1f1967c2ef51184f1cbdca21 (diff)
bashrc: now has get_{firefox,stack,spacemacs}
Diffstat (limited to 'dot/bashrc')
-rw-r--r--dot/bashrc19
1 files changed, 18 insertions, 1 deletions
diff --git a/dot/bashrc b/dot/bashrc
index 536bf50..aa1c803 100644
--- a/dot/bashrc
+++ b/dot/bashrc
@@ -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
408install_spacemacs() 408get_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
429get_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
438get_stack()
439{
440 if which stack >&- 2>&-
441 then return
442 else wget -qO- https://get.haskellstack.org/ | sh
443 fi
444}
445
429local_bashrc=~/.bashrc.$(hostname) 446local_bashrc=~/.bashrc.$(hostname)
430 447
431if [ -f "$local_bashrc" ]; then 448if [ -f "$local_bashrc" ]; then