X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/bdade147187076b7af3b5651851cfd02cc36beae..bfbba57e42b3ec4e25abec3a7ea6b1fcd6bc005f:/files/bashrc?ds=inline diff --git a/files/bashrc b/files/bashrc index 1b1c9ca..ab1af24 100644 --- a/files/bashrc +++ b/files/bashrc @@ -57,9 +57,11 @@ if [ -n "$force_color_prompt" ]; then fi if [ "$color_prompt" = yes ]; then - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' + # PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else - PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' + # PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' + PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' fi unset color_prompt force_color_prompt @@ -116,12 +118,65 @@ if ! shopt -oq posix; then fi fi -alias pyenv='CC="$(brew --prefix gcc)/bin/gcc-11" pyenv' -# alias pyenv='LDFLAGS=-lffi pyenv' +# alias pyenv='CC="$(brew --prefix gcc)/bin/gcc-11" pyenv' -eval "$(oh-my-posh --init --shell bash --config ~/oh-my-posh.omp.json)" +# eval "$(oh-my-posh --init --shell bash --config ~/oh-my-posh.omp.json)" # Call Windows apps from within Windows Subsystem for Linux -alias code="/mnt/c/Program\ Files/Microsoft\ VS\ Code/bin/code" -alias clip="/mnt/c/Windows/system32/clip.exe" -alias paste="/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -noprofile -command Get-Clipboard" + +export PATH="$HOME/bin:$PATH" +export PATH="$HOME/bin/platform-tools:$PATH" +export PATH="$HOME/.cargo/bin:$PATH" + +export LUANTI_DATA="$HOME/.var/app/net.minetest.Minetest/.minetest" +export LUANTI_RUN="flatpak run net.minetest.Minetest" + +## Projects + +export EDITOR=/usr/bin/vim +export SYSTEMD_EDITOR=/usr/bin/vim + +# GoLang +GO_BINS="$HOME/go/bin" +[[ -d $GO_BINS ]] && export PATH=$GO_BINS:$PATH +export GOPROXY=direct + +# source $HOME/envs/invoke/bin/activate + +[[ -f $HOME/.env ]] && source $HOME/.env +[[ -d $HOME/dotfiles/bin ]] && export PATH="$HOME/dotfiles/bin:$PATH" +[[ -d $HOME/src/minion/bin ]] && export PATH="$HOME/src/minion/bin:$PATH" +[[ -d $HOME/src/down-shift/bin ]] && export PATH="$HOME/src/down-shift/bin:$PATH" + +[[ ! -f $HOME/.env ]] && $HOME/envs/invoke/bin/invoke --print-completion-script bash > ~/.invoke-complete.sh +alias in='source $HOME/envs/invoke/bin/activate' +source $HOME/.invoke-complete.sh + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/home/edward/miniforge3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/home/edward/miniforge3/etc/profile.d/conda.sh" ]; then + . "/home/edward/miniforge3/etc/profile.d/conda.sh" + else + export PATH="/home/edward/miniforge3/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< + + +# >>> mamba initialize >>> +# !! Contents within this block are managed by 'mamba shell init' !! +export MAMBA_EXE='/home/edward/miniforge3/bin/mamba'; +export MAMBA_ROOT_PREFIX='/home/edward/miniforge3'; +__mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__mamba_setup" +else + alias mamba="$MAMBA_EXE" # Fallback on help from mamba activate +fi +unset __mamba_setup +# <<< mamba initialize <<<