dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

commit a828c7545b6b36994f4e662dfc754aebdc6a188c
parent 55f484ba3b4ead66fbdc9cf7cd8ee75682b85245
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date:   Sat, 17 Feb 2024 21:03:16 +0530

Merge branch 'main' of getsh.org:dotfiles

Diffstat:
M.bashrc | 1+
M.local/bin/bash/call | 1+
M.profile | 3+--
3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -1,3 +1,4 @@ +[ -z "$XDG_ROOT" ] && . ./.profile [ -f "$XDG_CONFIG_HOME/sh/unstaged" ] && . "$XDG_CONFIG_HOME/sh/unstaged" [ -f "$XDG_CONFIG_HOME/bash_unstaged" ] && . "$XDG_CONFIG_HOME/bash_unstaged" . "${XDG_CONFIG_HOME}/sh/aliases" diff --git a/.local/bin/bash/call b/.local/bin/bash/call @@ -1,3 +1,4 @@ +command -v jq || exit 1 export TERMUX_CONTACTS_LIST="$(termux-contact-list)" export CNA="$(echo "${TERMUX_CONTACTS_LIST}" | jq '.[] | .name' | fzf)" diff --git a/.profile b/.profile @@ -88,6 +88,5 @@ HISTTIMEFORMAT="%F %T " HISTCONTROL=erasedups . "${XDG_CONFIG_HOME}/sh/functions" -. "${XDG_CONFIG_HOME}/sh/unstaged" +[ -f "${XDG_CONFIG_HOME}/sh/unstaged" ] && . "${XDG_CONFIG_HOME}/sh/unstaged" -[ -n "$BASH" ] && [ -f "$XDG_ROOT/.bashrc" ] && . "$XDG_ROOT/.bashrc"