diff options
Diffstat (limited to 'fedora/.config/bash/bash_profile')
| -rw-r--r-- | fedora/.config/bash/bash_profile | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/fedora/.config/bash/bash_profile b/fedora/.config/bash/bash_profile index 2e8eab7..d74e372 100644 --- a/fedora/.config/bash/bash_profile +++ b/fedora/.config/bash/bash_profile @@ -3,17 +3,6 @@ umask 022 ################################################### -### --- ENV PATH --- ### -################################################### -# Add all directories in each subdirectory to $PATH -export PATH="$PATH:$(find ~/.local/bin -path '*/.git*' -prune -o \( -type f -o -type l \) -perm -u=x -exec dirname {} \; | sort -u | paste -sd ':' -)" -export PATH="$PATH:$(find ~/.local/share/.password-store -type d -name '.extensions' | paste -sd ':' -)" -command -v asdf >/dev/null 2>&1 && export PATH="$PATH:$(find -L ~/.local/share/asdf/installs -name bin -type d -print 2>/dev/null | sort -u | paste -s -d ':' -)" -command -v npm >/dev/null 2>&1 && export PATH="$PATH:$(find -L ~/.local/share/npm -name bin -type d -print 2>/dev/null | sort -u | paste -s -d ':' -)" - -unsetopt PROMPT_SP 2>/dev/null - -################################################### ### --- DEFAULT PROGRAMS --- ### ################################################### if command -v nvim >/dev/null 2>&1; then @@ -29,8 +18,6 @@ export SUDO_EDITOR=$EDITOR export TERM="xterm-256color" export VISUAL=$EDITOR export TERM="xterm-256color" -export GVIMINIT='let $MYGVIMRC="$XDG_CONFIG_HOME/vim/gvimrc" | source $MYGVIMRC' -export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC' ################################################### ### --- XDG ENV PATHES --- ### @@ -103,6 +90,18 @@ export TMUX_TMPDIR="$XDG_RUNTIME_DIR" export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export ZPLUGINDIR="$XDG_SCRIPTS_HOME/zsh" +################################################### +### --- ENV PATH --- ### +################################################### +# Add all directories in each subdirectory to $PATH +[ -d ~/.local/bin ] && export PATH="$(find ~/.local/bin -path '*/.git*' -prune -o \( -type f -o -type l \) -perm -u=x -exec dirname {} \; | sort -u | paste -sd ':' -):$PATH" +[ -d ~/.local/share/.password-store ] && export PATH="$(find ~/.local/share/.password-store -type d -name '.extensions' | paste -sd ':' -):$PATH" +export PATH="$ASDF_DATA_DIR/shims:$PATH" +command -v asdf >/dev/null 2>&1 && export PATH="$(find -L ~/.local/share/asdf/installs -name bin -type d -print 2>/dev/null | sort -u | paste -s -d ':' -):$PATH" +command -v npm >/dev/null 2>&1 && export PATH="$(find -L ~/.local/share/npm -name bin -type d -print 2>/dev/null | sort -u | paste -s -d ':' -):$PATH" + +unsetopt PROMPT_SP 2>/dev/null + ####################################################### # Source global/local definitions ####################################################### @@ -111,4 +110,7 @@ export ZPLUGINDIR="$XDG_SCRIPTS_HOME/zsh" [ -f /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion [ -f /etc/bash/bashrc ] && . /etc/bash/bashrc [ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/bash/bashrc" ] && . "${XDG_CONFIG_HOME:-${HOME}/.config}/bash/bashrc" +for file in "${XDG_CONFIG_HOME:-${HOME}/.config}/bash/completions"/*.bash; do + [ -f "$file" ] && . "$file" +done [ ! -f "$XDG_CONFIG_HOME/shell/shortcutrc" ] && setsid -f bmshortcuts >/dev/null 2>&1 |
