Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
diohabara committed Jul 5, 2023
1 parent e198aaa commit f64d374
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 61 deletions.
47 changes: 0 additions & 47 deletions dot_config/zsh/dot_zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ export PATH="/opt/homebrew/sbin:$PATH"
# Autocompletion
autoload -Uz compinit
compinit -u
#if [ "$(uname)" = "Darwin" ]; then
# chmod 755 /usr/local/share/zsh
# chmod 755 /usr/local/share/zsh/site-functions
#fi
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}'
eval "$(gh completion -s zsh)"

Expand All @@ -39,26 +35,6 @@ export PATH="${PATH}:/usr/local/bin"
export PATH="${PATH}:${HOME}/.local/bin"
export PATH="${PATH}:/usr/local/opt/binutils/bin"

# Doom Emacs
export PATH="${PATH}:${HOME}/.emacs.d/bin"

## LLVM
export PATH="/usr/local/opt/llvm/bin:${PATH}" # LLVM
export LDFLAGS="-L/usr/local/opt/llvm/lib"
export CPPFLAGS="-I/usr/local/opt/llvm/include"

# Languages
## Python
export PYENV_ROOT="${HOME}/.pyenv"
export PATH="${PATH}:${PYENV_ROOT}/bin"
eval "$(pyenv init --path)"
### poetry
# shellcheck disable=SC1090
if [ -e "${HOME}/.poetry" ]; then
# shellcheck source=/dev/null
. "${HOME}/.poetry/env"
fi

## Rust
export PATH="${PATH}:${HOME}/.cargo/bin"
export PKG_CONFIG_PATH="${HOME}/bin/convert"
Expand All @@ -77,29 +53,12 @@ if [ -n "$(which fzf-share)" ]; then
. "$(fzf-share)/completion.zsh"
fi

# for toolchain
# Doc: https://github.com/riscv/riscv-gnu-toolchain
# export PATH="${PATH}:/opt/riscv/bin"

# zplug
# shellcheck source=/dev/null
. "${HOME}/.zplug/init.zsh"
zplug "sobolevn/wakatime-zsh-plugin", from:github
zplug load

# Doc: https://nixos.wiki/wiki/Locales
# fix nix locale
export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive
# Doc: https://nix-community.github.io/home-manager/index.html#sec-install-standalone
export NIX_PATH="${HOME}/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}"

# for LLVM dev
export PATH="$PATH:${HOME}/repo/github.com/phacility/arcanist/bin/"
export PATH="$PATH:${HOME}/repo/github.com/diohabara/llvm-project/build/bin"
# for Doom
# Doc: https://github.com/doomemacs/doomemacs/blob/master/docs/getting_started.org#configure
export DOOMDIR="${XDG_CONFIG_HOME}/.doom.d"

# for direnv
eval "$(direnv hook zsh)"

Expand All @@ -110,9 +69,6 @@ setopt interactivecomments
export EDITOR=vim
bindkey -e

# riscv-toolchain
export PATH="$PATH:/opt/riscv/bin"

# Doc: https://nixos.wiki/wiki/Locales
export LOCALE_ARCHIVE=/usr/lib/locale/locale-archive

Expand All @@ -121,9 +77,6 @@ if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi

# gradle
export PATH="$PATH:/opt/gradle-6.9.3/bin"

# linker
FLAG_OPTION="-L$(which lld)"
export LDFLAGS="$FLAG_OPTION"
14 changes: 0 additions & 14 deletions run_onchange_install-package.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,6 @@ EOF"
}

: "laguages" && {
: "python" && {
: "pyenv" && {
if ! command_exists pyenv; then
# https://github.com/pyenv/pyenv#automatic-installer
curl https://pyenv.run | bash
fi
}
: "poetry" && {
if ! command_exists poetry; then
# https://python-poetry.org/docs/
curl -sSL https://install.python-poetry.org | python3 -
fi
}
}
: "rust" && {
if ! command_exists rustup; then
# Doc: https://www.rust-lang.org/tools/install
Expand Down

0 comments on commit f64d374

Please sign in to comment.