Update dotfiles/.profile, dotfiles/.config/asdf/default-golang-pkgs, dotfiles/.config/asdf/default-python-pkgs, dotfiles/.config/asdf/default-ruby-pkgs, dotfiles/.config/asdf/default-cargo-pkgs, dotfiles/.config/asdf/asdfrc, dotfiles/.bashrc, dotfiles/.zshrc
This commit is contained in:
parent
30431637c3
commit
01cd9f284f
8 changed files with 43 additions and 3 deletions
|
@ -237,6 +237,11 @@ if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### Java (asdf)
|
||||||
|
if [ -f "$HOME/.asdf/plugins/java/set-java-home.bash" ]; then
|
||||||
|
. "$HOME/.asdf/plugins/java/set-java-home.bash"
|
||||||
|
fi
|
||||||
|
|
||||||
### zoxide
|
### zoxide
|
||||||
command -v zoxide >/dev/null && eval "$(zoxide init bash)"
|
command -v zoxide >/dev/null && eval "$(zoxide init bash)"
|
||||||
|
|
||||||
|
|
8
dotfiles/.config/asdf/asdfrc
Normal file
8
dotfiles/.config/asdf/asdfrc
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# See the docs for explanations: https://asdf-vm.com/manage/configuration.html
|
||||||
|
|
||||||
|
legacy_version_file = no
|
||||||
|
use_release_candidates = no
|
||||||
|
always_keep_download = no
|
||||||
|
plugin_repository_last_check_duration = 60
|
||||||
|
disable_plugin_short_name_repository = no
|
||||||
|
java_macos_integration_enable = yes
|
2
dotfiles/.config/asdf/default-cargo-pkgs
Normal file
2
dotfiles/.config/asdf/default-cargo-pkgs
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ripgrep
|
||||||
|
--git https://github.com/sharkdp/bat
|
8
dotfiles/.config/asdf/default-golang-pkgs
Normal file
8
dotfiles/.config/asdf/default-golang-pkgs
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
github.com/uudashr/gopkgs/v2/cmd/gopkgs@latest
|
||||||
|
github.com/ramya-rao-a/go-outline@latest
|
||||||
|
github.com/cweill/gotests/...@latest
|
||||||
|
github.com/fatih/gomodifytags@latest
|
||||||
|
github.com/josharian/impl@latest
|
||||||
|
github.com/go-delve/delve/cmd/dlv@latest
|
||||||
|
golang.org/x/tools/gopls@latest
|
||||||
|
honnef.co/go/tools/cmd/staticcheck@latest
|
1
dotfiles/.config/asdf/default-python-pkgs
Normal file
1
dotfiles/.config/asdf/default-python-pkgs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pytest
|
1
dotfiles/.config/asdf/default-ruby-pkgs
Normal file
1
dotfiles/.config/asdf/default-ruby-pkgs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
bundler
|
|
@ -273,15 +273,25 @@ if [ -e /home/linuxbrew/.linuxbrew/bin/brew ]; then
|
||||||
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}"
|
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### Go
|
||||||
|
export GOPATH="${HOME}/.local/go"
|
||||||
|
export GO111MODULE=on
|
||||||
|
export PATH="$PATH:${GOPATH}/bin"
|
||||||
|
|
||||||
if command -v brew >/dev/null; then
|
if command -v brew >/dev/null; then
|
||||||
### Go
|
### Go
|
||||||
export GOPATH="${HOME}/.local/go"
|
|
||||||
GOROOT="$(brew --prefix golang)/libexec"
|
GOROOT="$(brew --prefix golang)/libexec"
|
||||||
export GOROOT
|
export GOROOT
|
||||||
export GO111MODULE=on
|
export PATH="$PATH:${GOROOT}/bin"
|
||||||
export PATH="$PATH:${GOPATH}/bin:${GOROOT}/bin"
|
|
||||||
|
|
||||||
### ASDF
|
### ASDF
|
||||||
|
export ASDF_CONFIG_FILE="$HOME/.config/asdf/asdfrc"
|
||||||
|
export ASDF_DIR="$HOME/.local/asdf"
|
||||||
|
export ASDF_DATA_DIR="$HOME/.local/asdf"
|
||||||
|
export ASDF_CRATE_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-cargo-pkgs
|
||||||
|
export ASDF_GEM_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-ruby-pkgs
|
||||||
|
export ASDF_GOLANG_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-golang-pkgs
|
||||||
|
export ASDF_PYTHON_DEFAULT_PACKAGES_FILE="$HOME/.config/asdf/default-python-pkgs
|
||||||
if [ -f "$(brew --prefix asdf)/libexec/asdf.sh" ]; then
|
if [ -f "$(brew --prefix asdf)/libexec/asdf.sh" ]; then
|
||||||
. "$(brew --prefix asdf)/libexec/asdf.sh"
|
. "$(brew --prefix asdf)/libexec/asdf.sh"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -352,6 +352,11 @@ if command -v brew > /dev/null; then
|
||||||
[[ ! -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc" ]] || source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"
|
[[ ! -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc" ]] || source "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
### Java (asdf)
|
||||||
|
if [ -f "$HOME/.asdf/plugins/java/set-java-home.zsh" ]; then
|
||||||
|
. "$HOME/.asdf/plugins/java/set-java-home.zsh"
|
||||||
|
fi
|
||||||
|
|
||||||
## TODO: What is this line?
|
## TODO: What is this line?
|
||||||
fpath+=~/.zfunc
|
fpath+=~/.zfunc
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue