From 62b37b45ddd0acad629dc00e183d57b79f2ccb71 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Fri, 19 Jan 2024 18:59:22 +0100 Subject: clean bashrc --- home-dots/dot-bashrc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'home-dots/dot-bashrc') diff --git a/home-dots/dot-bashrc b/home-dots/dot-bashrc index 098d855..5488946 100644 --- a/home-dots/dot-bashrc +++ b/home-dots/dot-bashrc @@ -14,11 +14,8 @@ HISTCONTROL=ignorespace # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + # test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' - #alias dir='dir --color=auto' - #alias vdir='vdir --color=auto' - alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' @@ -41,7 +38,7 @@ git_current_branch() { python_current_venv() { local orange="\[\e[0;91m\]" if [[ -n ${VIRTUAL_ENV} ]]; then - echo " ${orange} $(basename ${VIRTUAL_ENV})" + echo " ${orange} $(basename "${VIRTUAL_ENV}")" fi } @@ -73,7 +70,8 @@ export EDITOR='emacsclient' if [ -z "$SSH_CLIENT" ]; then unset SSH_AGENT_PID if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then - export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" + SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" + export SSH_AUTH_SOCK fi fi -- cgit v1.2.3