aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2024-01-19 18:59:22 +0100
committerOscar Najera <hi@oscarnajera.com>2024-01-19 18:59:22 +0100
commit62b37b45ddd0acad629dc00e183d57b79f2ccb71 (patch)
tree6b448c3ff59425c1b356025175327367143d3637
parentcb347e6d8a09ea91b2e5559dd7223a130b7dc35f (diff)
downloaddotfiles-62b37b45ddd0acad629dc00e183d57b79f2ccb71.tar.gz
dotfiles-62b37b45ddd0acad629dc00e183d57b79f2ccb71.tar.bz2
dotfiles-62b37b45ddd0acad629dc00e183d57b79f2ccb71.zip
clean bashrc
-rw-r--r--home-dots/dot-bashrc10
1 files changed, 4 insertions, 6 deletions
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