From f83681eb132210daddfa0ecf3596862ce01ac090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Steinh=C3=BCbl?= Date: Sat, 27 Jul 2024 22:31:18 +0200 Subject: [PATCH] add some bashrc stuff --- .bashrc | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 8b0b80e..9a69d7d 100644 --- a/.bashrc +++ b/.bashrc @@ -6,12 +6,38 @@ # Aliases alias ls="lsd" alias cat="bat" +alias s="kitten ssh" PS1='[\u@\h \W]\$ ' eval "$(starship init bash)" source ~/.local/share/blesh/ble.sh +complete -cf doas # doas completions # bun export BUN_INSTALL="$HOME/.bun" -export PATH=$BUN_INSTALL/bin:$PATH:~/.local/bin:~/go/bin +export PATH=$BUN_INSTALL/bin:$PATH:~/.local/bin:~/go/bin:~/.wakatime +. "$HOME/.cargo/env" + +# rbenv +export PATH="/home/hyro/.rbenv/shims:${PATH}" +export RBENV_SHELL=bash +command rbenv rehash 2>/dev/null +rbenv() { + local command + command="${1:-}" + if [ "$#" -gt 0 ]; then + shift + fi + + case "$command" in + rehash|shell) + eval "$(rbenv "sh-$command" "$@")";; + *) + command rbenv "$command" "$@";; + esac +} + +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion