aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-10-02 00:49:04 +0200
committerOscar Najera <hi@oscarnajera.com>2023-10-02 00:49:04 +0200
commit2a4b9687993b001f0614e3fb96cae24af73aede7 (patch)
treeffefcda3c82de75c03d2798c237467ee896acfc5
parent6e205a249a2b3656bb1759bc9ed7f15918ca5654 (diff)
downloaddotfiles-2a4b9687993b001f0614e3fb96cae24af73aede7.tar.gz
dotfiles-2a4b9687993b001f0614e3fb96cae24af73aede7.tar.bz2
dotfiles-2a4b9687993b001f0614e3fb96cae24af73aede7.zip
reduce bash dotfiles
-rw-r--r--home-dots/dot-bash_profile6
-rw-r--r--home-dots/dot-bashrc2
-rw-r--r--home-dots/dot-profile8
3 files changed, 3 insertions, 13 deletions
diff --git a/home-dots/dot-bash_profile b/home-dots/dot-bash_profile
deleted file mode 100644
index ea2a147..0000000
--- a/home-dots/dot-bash_profile
+++ /dev/null
@@ -1,6 +0,0 @@
-#
-# ~/.bash_profile
-#
-[[ -f ~/.bashrc ]] && . ~/.bashrc
-# [ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" # ghcup-env
-# source "$HOME/.cargo/env"
diff --git a/home-dots/dot-bashrc b/home-dots/dot-bashrc
index 8829999..0409c38 100644
--- a/home-dots/dot-bashrc
+++ b/home-dots/dot-bashrc
@@ -37,7 +37,7 @@ git_current_branch() {
echo "  ${ref#refs/heads/}"
}
-source /usr/bin/virtualenvwrapper_lazy.sh
+[[ -f /usr/bin/virtualenvwrapper_lazy.sh ]] && source /usr/bin/virtualenvwrapper_lazy.sh
python_current_venv() {
local orange="\[\e[0;91m\]"
if [[ -n ${VIRTUAL_ENV} ]]; then
diff --git a/home-dots/dot-profile b/home-dots/dot-profile
index f156b80..084d096 100644
--- a/home-dots/dot-profile
+++ b/home-dots/dot-profile
@@ -1,8 +1,4 @@
#!/bin/sh
export PATH="$HOME/.local/bin:$HOME/dev/dotfiles/bin:$PATH"
-[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" # ghcup-env
-source "$HOME/.cargo/env"
-# GUIX_PROFILE="$HOME/.guix-profile" && [ -e "$GUIX_PROFILE" ] && . "$GUIX_PROFILE/etc/profile" && export GUIX_LOCPATH=$GUIX_PROFILE/lib/locale
-# GUIX_PROFILE="$HOME/.config/guix/current" && [ -e "$GUIX_PROFILE" ] && . "$GUIX_PROFILE/etc/profile"
-# export SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
-# export SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
+[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env"
+[ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env"