dotfiles/bashrc
2025-03-17 00:53:47 -04:00

43 lines
987 B
Bash

# .bashrc
[[ $- != *i* ]] && return # If not running interactively, don't do anything
##### Load Secrets #####
secretfile="$HOME/.bashrc.setkeys"
[ ! -f "$secretfile" ] && (
echo "$secretfile does not exist, creating it"
touch $secretfile
chmod 660 $secretfile
)
. $secretfile # Load the secret file
## List of secrets ##
export VULTR_API_KEY
## End secrets list ##
##### End Secrets #####
PS1='\n[`date "+%a %b %Y"`] \w\n\[\033[32m\]\u@\h\[\033[37m\] \$ '
# Functions are more portable than alias
function ls() { exa $@; }
function la() { ls -la $@; }
function proxy() { ssh -N -v -D 5555 saw@solow.xyz; }
function ec() { emacsclient -t $@; }
function reload() { . ~/.bashrc; }
eval "$(zoxide init bash)"
. "$HOME/.cargo/env"
### PATH entries ###
PATH="${PATH}:/usr/local/bin"
PATH="${PATH}:${HOME}/.config/emacs/bin/"
PATH="${PATH}:/usr/lib/jvm/default-jdk/bin/"
export PATH
### End PATH entries ###
export EDITOR=nvim
export NNN_OPENER="${HOME}/.local/bin/opener.sh"