From 689afdca890c3c7d21b1ff97f099649686a32c22 Mon Sep 17 00:00:00 2001 From: Logan Bell Date: Thu, 30 Oct 2014 13:53:54 -0700 Subject: [PATCH 1/4] There is no function named ...source-if, but there is a ...sourceif --- .profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.profile b/.profile index 25e075a..ebd6557 100644 --- a/.profile +++ b/.profile @@ -5,5 +5,5 @@ for n in \ ~/.profile-$USER \ ~/.profile-$LOCAL do - ...source-if $n + ...sourceif $n done From d03ace4a3915c36505ef73bdf44b12690c228b23 Mon Sep 17 00:00:00 2001 From: Logan Bell Date: Fri, 21 Nov 2014 08:44:24 -0800 Subject: [PATCH 2/4] Loop .emacs Adding a loop dot for .emac files for emacs, this is similar in nature to the .vimrc. --- .emacs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .emacs diff --git a/.emacs b/.emacs new file mode 100644 index 0000000..1b35acc --- /dev/null +++ b/.emacs @@ -0,0 +1,10 @@ +(setq dirs (split-string (getenv "DOTDOTDOT_ORDER"))) +(while dirs + (setq currentemacfile (concat (car dirs) "/.emacs")) + (unless (string-match "loop-dots" currentemacfile) + (if (file-exists-p currentemacfile) + (load currentemacfile) + ;;(message "Loading .emac file for %s\n" currentemacfile) + )) + (setq dirs (cdr dirs))) + From 639505414a7b1d610c9374f821e490e76c5513a9 Mon Sep 17 00:00:00 2001 From: Logan Bell Date: Sun, 20 Nov 2016 20:08:09 -0800 Subject: [PATCH 3/4] porting to ontic --- .bashrc | 4 ++-- .profile | 2 +- .zlogin | 4 ++-- .zprofile | 4 ++-- .zshenv | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.bashrc b/.bashrc index c8b5b97..c47b0e8 100644 --- a/.bashrc +++ b/.bashrc @@ -1,8 +1,8 @@ -source ~/.../lib/assert-decent-shell || return +source ~/.ontic/lib/assert-decent-shell || return [[ -z $already_looped_bashrcs ]] || return already_looped_bashrcs=1 -source ~/.../lib/basics +source ~/.ontic/lib/basics ...sourcedircontents ~/.sh # Common with zsh ...sourcedircontents ~/.bash diff --git a/.profile b/.profile index ebd6557..99fe33e 100644 --- a/.profile +++ b/.profile @@ -1,4 +1,4 @@ -source ~/.../lib/scripting +source ~/.ontic/lib/scripting for n in \ ~/.profile-common \ ~/.profile-local \ diff --git a/.zlogin b/.zlogin index 4aea391..a64ce62 100644 --- a/.zlogin +++ b/.zlogin @@ -1,9 +1,9 @@ [[ -z $already_looped_zlogins ]] || return already_looped_zlogins=1 -source ~/.../lib/tracefuncs +source ~/.ontic/lib/tracefuncs ...filestart .zlogin -source ~/.../lib/scripting +source ~/.ontic/lib/scripting ...eachsource .zlogin ...sourcedircontents ~/.zsh/login ...fileend .zlogin diff --git a/.zprofile b/.zprofile index 0ceea1f..f17fc4e 100644 --- a/.zprofile +++ b/.zprofile @@ -1,9 +1,9 @@ [[ -z $already_looped_zprofile ]] || return already_looped_zprofile=1 -source ~/.../lib/tracefuncs +source ~/.ontic/lib/tracefuncs ...filestart .zprofile -source ~/.../lib/scripting +source ~/.ontic/lib/scripting ...eachsource .zprofile [ -d ~/.zsh/profile ] && ...sourcedircontents ~/.zsh/profile ...fileend .zprofile diff --git a/.zshenv b/.zshenv index d429e0a..48989ec 100644 --- a/.zshenv +++ b/.zshenv @@ -1,9 +1,9 @@ [[ -z $already_looped_zshenvs ]] || return already_looped_zshenvs=1 -source ~/.../lib/tracefuncs +source ~/.ontic/lib/tracefuncs ...filestart .zshenv -source ~/.../lib/basics +source ~/.ontic/lib/basics ...eachsource .zshenv ...sourcedircontents ~/.zsh/env From 4656dfa91d6390035771992f0770157e6cfc122e Mon Sep 17 00:00:00 2001 From: Logan Bell Date: Wed, 23 Nov 2016 13:51:41 -0800 Subject: [PATCH 4/4] Removing the emacs part and putting it in its own repo --- .emacs | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 .emacs diff --git a/.emacs b/.emacs deleted file mode 100644 index 1b35acc..0000000 --- a/.emacs +++ /dev/null @@ -1,10 +0,0 @@ -(setq dirs (split-string (getenv "DOTDOTDOT_ORDER"))) -(while dirs - (setq currentemacfile (concat (car dirs) "/.emacs")) - (unless (string-match "loop-dots" currentemacfile) - (if (file-exists-p currentemacfile) - (load currentemacfile) - ;;(message "Loading .emac file for %s\n" currentemacfile) - )) - (setq dirs (cdr dirs))) -