summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc71
1 files changed, 28 insertions, 43 deletions
diff --git a/bashrc b/bashrc
index 548ea89..f075b52 100644
--- a/bashrc
+++ b/bashrc
@@ -4,33 +4,6 @@
[[ $- != *i* ]] && return
-colors() {
- local fgc bgc vals seq0
-
- printf "Color escapes are %s\n" '\e[${value};...;${value}m'
- printf "Values 30..37 are \e[33mforeground colors\e[m\n"
- printf "Values 40..47 are \e[43mbackground colors\e[m\n"
- printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n"
-
- # foreground colors
- for fgc in {30..37}; do
- # background colors
- for bgc in {40..47}; do
- fgc=${fgc#37} # white
- bgc=${bgc#40} # black
-
- vals="${fgc:+$fgc;}${bgc}"
- vals=${vals%%;}
-
- seq0="${vals:+\e[${vals}m}"
- printf " %-9s" "${seq0:-(default)}"
- printf " ${seq0}TEXT\e[m"
- printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m"
- done
- echo; echo
- done
-}
-
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
# Change the window title of X terminals
@@ -65,8 +38,8 @@ unset use_color safe_term match_lhs sh
alias cp="cp -i" # confirm before overwriting something
alias df='df -h' # human-readable sizes
-alias music="mocp"
-alias gti="git"
+alias clangd="clangd-19" # I always use clangd-19
+alias gti="git" # I misspell git a lot!
xhost +local:root > /dev/null 2>&1
@@ -80,13 +53,10 @@ shopt -s checkwinsize
shopt -s expand_aliases
-# export QT_SELECT=4
-
# Enable history appending instead of overwriting. #139609
shopt -s histappend
-#
-# # ex - archive extractor
+# Generic extractor
# # usage: ex <file>
ex ()
{
@@ -110,19 +80,34 @@ ex ()
fi
}
-export PATH="${PATH}:~/Scripts:~/.local/bin:~/Programs/flutter/bin:~/.pub-cache/bin"
-
-if [ -f ~/.git-completion.bash ]; then
- . ~/.git-completion.bash
+# Git completion
+if [ -f $HOME/.git-completion.bash ]; then
+ . $HOME/.git-completion.bash
fi
-export PYENV_ROOT="$HOME/.pyenv"
-command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
-eval "$(pyenv init -)"
-
+# NVM if it exists
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
-# emsdk
-source "/home/matthew/Programs/emsdk/emsdk_env.sh" 2>/dev/null
+# These are special systems to make Mir symbols generation work
+export MIR_SYMBOLS_MAP_GENERATOR_CLANG_SO_PATH=/usr/lib/llvm-19/lib/libclang-19.so.1
+export MIR_SYMBOLS_MAP_GENERATOR_CLANG_LIBRARY_PATH=/usr/lib/llvm-19/lib
+
+# Emsdk for emscripten
+if [ -f ~/Programs/emsdk/emsdk_env.sh ]; then
+ source ~/Programs/emsdk/emsdk_env.sh >/dev/null 2>&1
+fi
+
+# Update path with my scripts and programs directory.
+# Also update the path with my typical path to flutter and pyenv.
+export PATH="${PATH}:$HOME/Scripts:~/Programs:$HOME/Github/flutter/bin:~/.pyenv/versions/3.11.9/bin"
+export PATH="$PATH":"$HOME/.pub-cache/bin"
+export PATH="$HOME/Programs/depot_tools:$HOME/.local/bin:$PATH"
+
+# bun
+export BUN_INSTALL="$HOME/.bun"
+export PATH="$BUN_INSTALL/bin:$PATH"
+
+# Export flutter as an environment variable
+export FLUTTER="$HOME/Github/flutter/bin/flutter"