Browse Source

clean up, add asdf submodule

master
Inhji Y. 2 months ago
parent
commit
8b13299e5b
3 changed files with 12 additions and 22 deletions
  1. +3
    -0
      .gitmodules
  2. +1
    -0
      asdf
  3. +8
    -22
      config/zshrc

+ 3
- 0
.gitmodules View File

@@ -7,3 +7,6 @@
[submodule "z"]
path = z
url = https://github.com/rupa/z.git
[submodule "asdf"]
path = asdf
url = https://github.com/asdf-vm/asdf.git

+ 1
- 0
asdf

@@ -0,0 +1 @@
Subproject commit a7252e687ab65fc8dd04cfaa2be09446c84e312a

+ 8
- 22
config/zshrc View File

@@ -1,6 +1,6 @@
# Path to your oh-my-zsh configuration.
export DOTFILES=$HOME/.dotfiles
export PATH=$HOME/.local/bin:$HOME/.mix/escripts:/usr/local/go/bin:$HOME/.local/share/flatpak/exports/bin:$PATH
export PATH=$HOME/.local/bin:$HOME/.mix/escripts:$PATH

if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
@@ -8,25 +8,14 @@ else
export EDITOR='subl'
fi

if [[ -d $HOME/.cargo ]]; then
source $HOME/.cargo/env
fi

if [[ -d /home/linuxbrew ]]; then
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
fi

if [[ -f $HOME/.zsh-custom ]]; then
source $HOME/.zsh-custom
fi

# Load Pure
fpath=("$HOME/.zfunctions" $fpath)

autoload -U promptinit; promptinit

# optionally define some options
PURE_CMD_MAX_EXEC_TIME=10

prompt pure

# Load z
@@ -35,14 +24,11 @@ prompt pure
# Load aliases
. $DOTFILES/config/zsh/aliases.zsh

# Load asdf
. $DOTFILES/asdf/asdf.sh
fpath=($DOTFILES/asdf/completions $fpath)
autoload -Uz compinit
compinit

# Load dircolors
eval $( dircolors -b $DOTFILES/config/zsh/dircolors.zsh )

# Pyenv
if [[ -d $HOME/.pyenv ]]; then
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi



Loading…
Cancel
Save