diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..420f48d --- /dev/null +++ b/.bashrc @@ -0,0 +1,30 @@ +# +# ~/.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)"