summaryrefslogtreecommitdiff
path: root/bash/.bash_profile
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2019-08-18 18:44:13 +0200
committerEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2019-08-18 18:44:13 +0200
commit80fc1d3f9a5064a6a5a4f882ee83e514130c536a (patch)
treee76274ec822e1a5c121290a6445cad4b31fa7f9d /bash/.bash_profile
parent15f83d7a1d10f7101d79fec0c86872afdb76ffb9 (diff)
Move all the bash shit and clean the mess
Diffstat (limited to 'bash/.bash_profile')
-rw-r--r--bash/.bash_profile63
1 files changed, 3 insertions, 60 deletions
diff --git a/bash/.bash_profile b/bash/.bash_profile
index 053789e..dee76b7 100644
--- a/bash/.bash_profile
+++ b/bash/.bash_profile
@@ -1,61 +1,4 @@
-# Load in the git branch prompt script.
-source ~/.git-prompt.sh
-
-BLACK="\[\033[0;30m\]"
-RED="\[\033[0;31m\]"
-GREEN="\[\033[0;32m\]"
-YELLOW="\[\033[0;33m\]"
-BLUE="\[\033[0;34m\]"
-MAGENTA="\[\033[0;35m\]"
-CYAN="\[\033[0;36m\]"
-GREY="\[\033[0;37m\]"
-DEFAULT="\[\033[0;39m\]"
-WHITE=DEFAULT
-PS1BASE="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}$GREEN\u@\h\[\033[00m\]:$CYAN\w\[\033[00m\]" #not in use atm
-# TODO CHECK THIS, LOOKS INTERESTING
-PS1TIME="$GREEN\t$RED - " # Not in use atm
-PS1BASE="$CYAN\u $YELLOW\w\[\033[m\]"
-PS1GIT="$BLUE\$(__git_ps1)$DEFAULT"
-PS1END="$DEFAULT\$ "
-PS1="${PS1BASE}${PS1GIT}${PS1END}"
-
-
-if [ -f ~/.bash_aliases ] ; then
- . ~/.bash_aliases
+# Load bashrc to mantain only one file
+if [ -f ~/.bashrc ]; then
+ source ~/.bashrc
fi
-
-# Extra configuration for work or home, just separate it in different file to keep dotfiles clean
-if [ -f ~/.bash_extra ] ; then
- . ~/.bash_extra
-fi
-
-export TERM=xterm-256color
-export EDITOR=vim
-
-# NeoVim configuration
-# Create .config if it doesn't exist and set XDG vars
-mkdir -p $HOME/.config
-export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:=$HOME/.config}
-export XDG_DATA_HOME=${XDG_DATA_HOME:=$HOME/.config}
-
-
-# Pandoc bash completion
-eval "$(pandoc --bash-completion)"
-
-# Guix
-if [ -n "$GUIX_ENVIRONMENT" ] # Change prompt if shell is in an environment
-then
- PS1GUIXENV="$BLUE(guix-env)$DEFAULT"
- PS1="${PS1BASE}${PS1GIT}${PS1GUIXENV}${PS1END}"
-fi
-export PATH="/home/ekaitz/.config/guix/current/bin${PATH:+:}$PATH"
-export PATH="/home/ekaitz/.guix-profile/bin${PATH:+:}$PATH"
-export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale" # Locale directory
-
-
-# Guile (guix)
-export GUILE_LOAD_PATH="/home/ekaitz/.guix-profile/share/guile/site/2.2${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
-export GUILE_LOAD_COMPILED_PATH="/home/ekaitz/.guix-profile/lib/guile/2.2/site-ccache${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
-
-# Direnv
-eval "$(direnv hook bash)"