Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no function named ...source-if, but there is a ...sourceif - also a .emacs file #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .bashrc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions .profile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
source ~/.../lib/scripting
source ~/.ontic/lib/scripting
for n in \
~/.profile-common \
~/.profile-local \
~/.profile-$USER \
~/.profile-$LOCAL
do
...source-if $n
...sourceif $n
done
4 changes: 2 additions & 2 deletions .zlogin
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions .zprofile
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions .zshenv
Original file line number Diff line number Diff line change
@@ -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

Expand Down