summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc20
1 files changed, 18 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index 3318cd5..830a92c 100644
--- a/.bashrc
+++ b/.bashrc
@@ -4,6 +4,7 @@
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
+if [[ $HISTFILE = /dev/null ]]; then unset HISTFILE; fi
# Test for an interactive shell. There is no need to set anything
@@ -22,6 +23,9 @@ alias btd="bittorrent-curses --max_upload_rate 6 "
export history_control=ignoreboth
export command_oriented_history
export HISTIGNORE='&:[bf]g:exit:ls'
+
+export LESSCOLORIZER='pygmentize -O bg=dark,style=github-dark -f terminal16m'
+
shopt -s extglob
shopt -s cmdhist
shopt -s histappend
@@ -31,7 +35,7 @@ shopt -s no_empty_cmd_completion
function xtitle() {
case $TERM in
- xterm*|rxvt|Eterm|eterm)
+ xterm*|rxvt*|Eterm|eterm|alacritty)
echo -ne "\e]0;$1\007"
;;
screen)
@@ -48,7 +52,15 @@ function xreset() {
esac
}
-. ~/src/git-prompt/git-prompt.sh
+#. ~/src/git-prompt/git-prompt.sh
+function starship_set_win_title() {
+ local cwd="${PWD/$HOME/\~}"
+ cwd="${cwd##[/~]*/}/"
+
+ xtitle "$USER@$(hostname):$cwd"
+}
+starship_precmd_user_func=starship_set_win_title
+eval "$(starship init bash)"
#export PS1="\
#\[\033[1;37m\]\u@\h\
@@ -58,3 +70,7 @@ function xreset() {
#\[\033[0;34m\]\$\
#\[\033[0m\] "
+
+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