dootfiles/.bashrc
2024-03-12 22:14:38 -04:00

30 lines
745 B
Bash

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
#alias ls='ls --color=auto'
alias ls='lsd'
alias grep='grep --color=auto'
PS1='[\u@\h \W]\$ '
if [[ "$XDG_CURRENT_DESKTOP" = "KDE" ]]; then
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR:-/run/user/$UID}/ssh-agent.socket"
export SSH_ASKPASS="/usr/bin/ksshaskpass"
else
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR:-/run/user/$UID}/gcr/ssh"
fi
eval "$(starship init bash)"
if [[ ! -r "$HOME/.local/share/blesh/ble.sh" ]]; then
git clone --recursive --depth 1 --shallow-submodules https://github.com/akinomyoga/ble.sh.github
make -C ble.sh install PREFIX="$HOME/.local"
rm -rf ble.sh
fi
source ~/.local/share/blesh/ble.sh
eval "$(atuin init bash)"