chore: rename scripts/shared

This commit is contained in:
2024-07-17 09:39:57 +03:00
parent 735807f245
commit 7bc7921a17
4 changed files with 4 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
# this is my bashrc config. there are many like it, but this one is mine.
# shellcheck shell=bash
source "$HOME/.dotfiles/config/shared"
source "$HOME/.dotfiles/config/shared.sh"
x-load-configs

View File

@@ -1,12 +1,11 @@
# this is my zsh config. there are many like it, but this one is mine.
# shellcheck shell=bash
source "$HOME/.dotfiles/config/shared"
eval "$HOME/.dotfiles/config/shared.sh"
x-load-configs
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")"
}

1
config/shared → config/shared.sh Normal file → Executable file
View File

@@ -21,4 +21,3 @@ export PATH="$XDG_BIN_HOME:$DOTFILES/local/bin:$HOME/.local/go/bin:$XDG_DATA_HOM
source "$DOTFILES/config/exports"
source "$DOTFILES/config/functions"
source "$DOTFILES/config/alias"

View File

@@ -12,7 +12,7 @@
|| [[ -n $BASH_VERSION ]] && (return 0 2> /dev/null)
) && sourced=1 || sourced=0
source "$HOME/.dotfiles/config/shared"
source "$HOME/.dotfiles/config/shared.sh"
DOTFILES_CURRENT_SHELL=$(ps -p $$ -oargs=)
export DOTFILES_CURRENT_SHELL