mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
24 lines
710 B
Bash
24 lines
710 B
Bash
# this is my bashrc config. there are many like it, but this one is mine.
|
|
# shellcheck shell=bash
|
|
|
|
export DOTFILES="$HOME/.dotfiles"
|
|
export PATH="$HOME/.local/bin:$DOTFILES/local/bin:$PATH"
|
|
export SHARED_SCRIPTS_SOURCED=0
|
|
|
|
source "$DOTFILES/config/shared.sh"
|
|
|
|
# shellcheck source=../config/fzf/fzf.bash
|
|
[ -f "${DOTFILES}/config/fzf/fzf.bash" ] &&
|
|
source "${DOTFILES}/config/fzf/fzf.bash"
|
|
|
|
# Import ssh keys in keychain
|
|
ssh-add -A 2>/dev/null
|
|
|
|
x-have antidot && {
|
|
eval "$(antidot init)"
|
|
}
|
|
|
|
PROMPT_DIRTRIM=3
|
|
PROMPT_COMMAND='PS1_CMD1=$(git branch --show-current 2>/dev/null)'
|
|
PS1='\[\e[95m\]\u\[\e[0m\]@\[\e[38;5;22;2m\]\h\[\e[0m\] \[\e[38;5;33m\]\w\[\e[0m\] \[\e[92;2m\]${PS1_CMD1}\n\[\e[39m\]➜\[\e[0m\] '
|