My Dot Files

.bashrc, .profile and some other config files can be found here.


.bashrc

A simple getgo [verison] is what I use to update my go installation. Works like charm so far.

function getgo() {
    wget -P /tmp/ https://dl.google.com/go/go"[email protected]".linux-amd64.tar.gz
    rm -rf ~/.local/go
    tar -C ~/.local -xzf /tmp/go"[email protected]".linux-amd64.tar.gz
    rm -rf /tmp/go"[email protected]".linux-amd64.tar.gz
    go version
}
alias g='amfora'

For custom prompt. Add this and comment the part commented below it.

parse_git_branch() {
 git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
if [ "$color_prompt" = yes ]; then
 PS1='${debian_chroot:+($debian_chroot)}\[\033[00;35m\]\u\[\033[00;30m\]@\[\033[00;36m\]\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[01;31m\]$(parse_git_branch)\[\033[00m\]\$ '
else
 PS1='${debian_chroot:+($debian_chroot)}\[email protected]\h:\w$(parse_git_branch)\$ '
fi

# if [ "$color_prompt" = yes ]; then
#    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\[email protected]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# else
#     PS1='${debian_chroot:+($debian_chroot)}\[email protected]\h:\w\$ '
# fi
# unset color_prompt force_color_prompt

.profile

I usually place binaries like micro, amfora, youtube-dl in ~./local/bin (labeled as General below)

# Go
export PATH=$PATH:~/.local/go/bin:~/go/bin
export GOPATH=$HOME/go
# General
export PATH=$PATH:~/.local/bin
# Flutter
export PATH=$PATH:~/.local/flutter/bin

amfora

I use amfora for Gemini. But I don't like its default color scheme.

bg = "#ffffd7"
regular_text = "#808080"
quote_text = "#808080"
preformatted_text = "#808080"
list_text = "#808080"
hdg_1 = "#5f5f87"
hdg_2 = "#5f5faf"
hdg_3 = "#5f5fd7"
amfora_link = "#875fd7"
foreign_link = "#ff5f87"

That's all folks.