]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Merge branch 'main' of git.sr.ht:~rbdr/dotfiles
authorRuben Beltran del Rio <redacted>
Sun, 19 Mar 2023 13:08:51 +0000 (14:08 +0100)
committerRuben Beltran del Rio <redacted>
Sun, 19 Mar 2023 13:08:51 +0000 (14:08 +0100)
1  2 
install
runcoms/zshrc

diff --combined install
index 88930c49825492047b6d1d3116b587f92a5eb456,ba0458bf1da83714fb0acbf2ac1556401c492fa5..a7f07b6ebae7ce7879b87f3fc50ac25af78144c6
+++ b/install
@@@ -40,14 -40,11 +40,14 @@@ ln -fns .dotfiles/gitconfig ~/.gitconfi
  ln -fns .dotfiles/ctags.d ~/.ctags.d
  
  # XDefaults
- ln -fns .dotfiles/XDefaults ~/.XDefaults
+ ln -fns .dotfiles/Xdefaults ~/.Xdefaults
  
  # ripgrep
  ln -fns .dotfiles/rgignore ~/.rgignore
  
 +# skhdc
 +ln -fns .dotfiles/skhdrc ~/.skhdrc
 +
  # tmuxp
  ln -fns .dotfiles/tmuxp ~/.tmuxp
  
@@@ -60,9 -57,12 +60,12 @@@ ln -fns ../.dotfiles/config/kitty ~/.co
  # nvim
  ln -fns ../.dotfiles/config/nvim ~/.config/nvim
  
 -# Karabiner
 +# karabiner
  ln -fns ../.dotfiles/config/karabiner ~/.config/karabiner
  
+ # i3
+ ln -fns ../.dotfiles/config/i3 ~/.config/i3
  touch ~/.tool-versions
  
  # Italics setup
diff --combined runcoms/zshrc
index 153d73daaf77277de1d7fa030009b50a70290691,808616a00897ecd08f686679fc49f34178917cf7..9555055dc9c9b56dcaa2f9063c18e698644aa14c
@@@ -29,10 -29,11 +29,10 @@@ export TERM=xterm-256color-itali
  # Paths
  # export JAVA_HOME=$(/usr/libexec/java_home) # Enable if using JDK, otherwise disable for performance
  export GOPATH=$HOME/Projects/go
 -export NODE_PATH=/usr/local/lib/node_modules:$NODE_PATH
  export ANDROID_HOME=$HOME/Library/Android/sdk
  export ANDROID_NDK_HOME=$HOME/Library/Android/sdk/ndk-bundle
  export NVM_DIR=$HOME/.nvm
 -export PATH=$PATH:$HOME:/usr/local/opt/go/libexec/bin:${GOPATH//://bin:}/bin
 +export PATH=$PATH:$HOME:${GOPATH//://bin:}/bin
  export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK_HOME:/Applications/calibre.app/Contents/MacOS
  
  # Editor.
@@@ -43,6 -44,7 +43,6 @@@ export VISUAL="nvim
  export VIRTUAL_ENV_DISABLE_PROMPT=1
  export WORKON_HOME=$HOME/.virtualenvs
  export PROJECT_HOME=$HOME/Documents/projects
 -export VIRTUALENVWRAPPER_PYTHON="/usr/local/bin/python3"
  
  # GPG
  export GPG_TTY=$(tty)
@@@ -86,12 -88,20 +86,20 @@@ f
  if [[ -s "/opt/homebrew/bin/brew" ]]; then
    . /opt/homebrew/etc/profile.d/z.sh
  else
-   . /usr/local/etc/profile.d/z.sh
+   if [[ -s "/usr/share/z/z.sh" ]]; then
+     . /usr/share/z/z.sh
+   else
+     . /usr/local/etc/profile.d/z.sh
+   fi
  fi
  
  # ASDF
  if ! command -v brew &>  /dev/null; then
-   . $HOME/.asdf/asdf.sh
+   if [[ -s "/opt/asdf-vm/asdf.sh" ]]; then
+     . /opt/asdf-vm/asdf.sh
+   else
+     . $HOME/.asdf/asdf.sh
+   fi
  else
 -  . $(brew --prefix asdf)/asdf.sh
 +  . $(brew --prefix asdf)/libexec/asdf.sh
  fi