commit 3659c1ae04912a4a803933eb8b66683ebed94584 parent c32a7b30a558442a0b00b0444e4651540ae98529 Author: Bharatvaj <bharatvaj@yahoo.com> Date: Tue, 5 Jul 2022 00:35:22 +0530 Fix .profile path for .bash_profile Diffstat:
M | .bash_profile | | | 7 | +------ |
M | .config/sh/aliases | | | 4 | +++- |
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/.bash_profile b/.bash_profile @@ -1,9 +1,4 @@ -# If not running interactively, don't do anything -[[ $- != *i* ]] && return - [ -n "$1" ] && XDG_ROOT="$1" || XDG_ROOT="$HOME" -export XDG_CONFIG_HOME="$XDG_ROOT/.config" - -[ -f "${XDG_CONFIG_HOME}"/.profile ] && . "${XDG_CONFIG_HOME}"/.profile +[ -f "${XDG_ROOT}"/.profile ] && . "${XDG_ROOT}"/.profile [ -f "${XDG_CONFIG_HOME}"/bash/bashrc ] && . "${XDG_CONFIG_HOME}"/bash/bashrc diff --git a/.config/sh/aliases b/.config/sh/aliases @@ -17,13 +17,15 @@ there ifconfig && alias lip="ifconfig | grep -w inet | cut -d ' ' -f2" there curl && alias gip="curl ifconfig.co" # [navigation] -alias -- -='cd -' alias ....='cd ../../..' alias ...='cd ../..' alias ..='cd ..' alias cf="quickopen cd d" alias ef="quickopen ${EDITOR} f" alias vf="quickopen ${VISUAL} f" +# This won't work with dash +# dash want's alias \- +# alias -- -='cd -' # [shorthands] alias '?d'='sr duckduckgo'