diff --git a/.bash_logout b/.bash_logout new file mode 100644 index 0000000..de4f5f7 --- /dev/null +++ b/.bash_logout @@ -0,0 +1,7 @@ +# ~/.bash_logout: executed by bash(1) when login shell exits. + +# when leaving the console clear the screen to increase privacy + +if [ "$SHLVL" = 1 ]; then + [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q +fi diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..86795d7 --- /dev/null +++ b/.bash_profile @@ -0,0 +1 @@ +source ~/.bashrc diff --git a/.bashrc b/.bashrc index e4a6de2..3dadf77 100644 --- a/.bashrc +++ b/.bashrc @@ -100,9 +100,9 @@ fi # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). -#if [ -f /etc/bash_completion ] && ! shopt -oq posix; then -# . /etc/bash_completion -#fi +if [ -f /etc/bash_completion ] && ! shopt -oq posix; then + . /etc/bash_completion +fi # Rust/Cargo setup . "$HOME/.cargo/env" @@ -117,5 +117,15 @@ export PATH="$HOME/nvim/bin:$PATH" # Theming export PS1="\[\e[36m\]$(date +'%H:%M:%S')\[\e[32m\]$USER \[\e[35m\]\w \[\e[31m\]$ " -# Path setting -export PATH="$HOME/bin:$PATH" \ No newline at end of file +# Homebrew (Linuxbrew) - Check if it exists first +if [ -f /home/linuxbrew/.linuxbrew/bin/brew ]; then + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" + + # thefuck + eval $(thefuck --alias) +fi + +# Path Setting - Make sure $HOME/bin exists and only add it once. +if [ -d "$HOME/bin" ] && ! echo "$PATH" | grep -q "$HOME/bin"; then + export PATH="$HOME/bin:$PATH" +fi diff --git a/.gitconfig b/.gitconfig index 92312a7..2b88104 100644 --- a/.gitconfig +++ b/.gitconfig @@ -9,5 +9,6 @@ autoSetupRemote = true [safe] directory = /appdata + directory = /storage/emulated/0/Obsidian Vaults/second-brain [pull] rebase = false