feat(asdf): asdf and configuration (#19)

* chore(shell): configuration tweaks
* feat(asdf): add asdf, settings & most of the deps
This commit is contained in:
Ismo Vuorinen
2024-07-06 20:19:15 +03:00
committed by GitHub
parent 77b0428cec
commit d93bc7aae3
10 changed files with 197 additions and 47 deletions

View File

@@ -1,26 +1,8 @@
# this is my bashrc config. there are many like it, but this one is mine.
# shellcheck shell=bash
# Defaults
export DOTFILES="$HOME/.dotfiles"
source "$HOME/.dotfiles/config/shared"
# Explicitly set XDG folders
# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
# custom variables
export XDG_BIN_HOME="$HOME/.local/bin"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_RUNTIME_DIR="$HOME/.local/run"
# Paths
export PATH="$XDG_BIN_HOME:$DOTFILES/local/bin:$HOME/.local/go/bin:$XDG_DATA_HOME/cargo/bin:$PATH"
source "$DOTFILES/config/exports"
source "$DOTFILES/config/functions"
source "$DOTFILES/config/alias"
x-load-configs
# shellcheck source=../config/fzf/fzf.bash
@@ -30,14 +12,13 @@ x-load-configs
# Import ssh keys in keychain
ssh-add -A 2>/dev/null
x-have oh-my-posh && {
eval "$(oh-my-posh init bash --config "$DOTFILES/config/omp/own.toml")"
}
. "$HOME/.local/share/asdf/asdf.sh"
. "$HOME/.local/share/asdf/completions/asdf.bash"
x-have antidot && {
eval "$(antidot init)"
}
x-have rbenv && {
eval "$(rbenv init - bash)"
}
x-have oh-my-posh && {
eval "$(oh-my-posh init bash --config $DOTFILES/config/omp/own.toml)"
}

View File

@@ -1,25 +1,14 @@
# this is my zsh config. there are many like it, but this one is mine.
# shellcheck shell=bash
export DOTFILES="$HOME/.dotfiles"
# Explicitly set XDG folders
# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
# custom variables
export XDG_BIN_HOME="$HOME/.local/bin"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_RUNTIME_DIR="$HOME/.local/run"
source "$HOME/.dotfiles/config/shared"
export PATH="$XDG_BIN_HOME:$DOTFILES/local/bin:$HOME/.local/go/bin:$XDG_DATA_HOME/bob/nvim-bin:$XDG_DATA_HOME/cargo/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
x-load-configs
x-have oh-my-posh && {
eval "$(oh-my-posh init zsh --config $DOTFILES/config/omp/own.toml)"
eval "$(oh-my-posh init zsh --config "$DOTFILES/config/omp/own.toml")"
}
export COMPLETION_WAITING_DOTS=true
@@ -57,6 +46,7 @@ export ZSHZ_DATA="$XDG_STATE_HOME/z"
antigen bundle z
# these should be always available
antigen bundle asdf
antigen bundle tmux
antigen bundle colored-man-pages
antigen bundle ssh-agent