From 2a4b9687993b001f0614e3fb96cae24af73aede7 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Mon, 2 Oct 2023 00:49:04 +0200 Subject: reduce bash dotfiles --- home-dots/dot-bash_profile | 6 ------ home-dots/dot-bashrc | 2 +- home-dots/dot-profile | 8 ++------ 3 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 home-dots/dot-bash_profile 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" -- cgit v1.2.3