From 12539116e153b9758666ae99425c484e7fee162b Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Tue, 12 Mar 2024 22:14:38 -0400 Subject: [PATCH] Added bashrc --- .bashrc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .bashrc 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)"