aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Janzen <jjanzenn@proton.me>2024-08-07 15:27:41 -0500
committerJacob Janzen <jjanzenn@proton.me>2024-08-07 15:27:41 -0500
commit05a87bb0eb20345694a09c9e5e5930028c0c0339 (patch)
tree287089ea163d8af55a2c0d3f132fa118ee73091e
parent24ed1e1e952716d06d994f383d7e92661cf362a9 (diff)
start installing config files
-rw-r--r--clang-format.org2
-rw-r--r--gitconfig.org6
-rwxr-xr-xinstall2
-rw-r--r--profile.org4
4 files changed, 7 insertions, 7 deletions
diff --git a/clang-format.org b/clang-format.org
index 66ebc8a..6c38b3b 100644
--- a/clang-format.org
+++ b/clang-format.org
@@ -1,6 +1,6 @@
#+title: Clang-Format Settings
Use a style similar to Linux kernel style (but with 4-wide indents and spaces over tabs).
-#+begin_src yaml :tangle .clang-format
+#+begin_src yaml :tangle ~/.clang-format
BasedOnStyle: LLVM
IndentWidth: 4
BreakBeforeBraces: Linux
diff --git a/gitconfig.org b/gitconfig.org
index 7ea0fc6..c907204 100644
--- a/gitconfig.org
+++ b/gitconfig.org
@@ -1,18 +1,18 @@
#+title: Git Configuration
Define my full name and email.
-#+begin_src conf :tangle .gitconfig
+#+begin_src conf :tangle ~/.gitconfig
[user]
name = Jacob Janzen
email = jjanzenn@proton.me
#+end_src
Use =main= over =master=.
-#+begin_src conf :tangle .gitconfig
+#+begin_src conf :tangle ~/.gitconfig
[init]
defaultBranch = main
#+end_src
Make =pull= rebase on conflict.
-#+begin_src conf :tangle .gitconfig
+#+begin_src conf :tangle ~/.gitconfig
[pull]
rebase = true
#+end_src
diff --git a/install b/install
index 19e2191..8c7d704 100755
--- a/install
+++ b/install
@@ -25,7 +25,7 @@ fi
# install config files
find -- * -type f -name "*.org" | while read -r file; do
echo Installing "${file}" configuration...
- # emacs --batch "${file}" -f package-initialize --eval '(org-babel-tangle)'
+ emacs --batch "${file}" -f package-initialize --eval '(org-babel-tangle)'
done
cd "${CWD}" || exit
diff --git a/profile.org b/profile.org
index ea33433..2b9f7e8 100644
--- a/profile.org
+++ b/profile.org
@@ -1,13 +1,13 @@
#+title: =.profile= Settings
* Path
Add items to the path.
-#+begin_src sh :tangle .profile
+#+begin_src sh :tangle ~/.profile
export PATH="$HOME/.local/share/fzf-zsh-plugin/bin:$HOME/node_modules/.bin:$HOME/.emacs.d/bin:$HOME/bin:$HOME/gems/bin:$HOME/.local/bin:$HOME/go/bin:$PATH"
#+end_src
* SSH Agent
Run =ssh-agent= if =ssh-agent= is not already running. Ensure that the authorization socket is available in the shell.
-#+begin_src sh :tangle .profile
+#+begin_src sh :tangle ~/.profile
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent` > /dev/null
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock