dotfiles

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

commit 3aae0c3c7d2162bcc8faeae2f9d40f2d62a8cc97
parent dfae74cf44dcde035c922040fef5b68133fb3817
Author: Bharatvaj H <bharatvaj@yahoo.com>
Date:   Mon, 25 May 2020 18:07:01 +0530

Added .profile for flexibility

Diffstat:
M.bash_profile | 1+
D.bashrc | 14--------------
A.profile | 15+++++++++++++++
3 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/.bash_profile b/.bash_profile @@ -3,6 +3,7 @@ # [[ -f ~/.bashrc ]] && . ~/.bashrc +[[ -f ~/.profile ]] && . ~/.profile if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then exec startx -logverbose 1 fi diff --git a/.bashrc b/.bashrc @@ -1,14 +0,0 @@ -# -# ~/.bashrc -# - -# If not running interactively, don't do anything -[[ $- != *i* ]] && return -source ~/.git-completion.bash -alias ls='ls --color=auto' -alias grep="grep --color=auto" - -parse_git_branch(){ - git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' -} -export PS1="\[\033[33m\]\$(parse_git_branch)\[\033[00m\] \w \$ " diff --git a/.profile b/.profile @@ -0,0 +1,15 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return +source ~/.git-completion.bash +alias ls='ls -G' +export GREP_OPTIONS='--color=auto' +export GREP_COLOR='1;35;40' + +parse_git_branch(){ + git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' +} +export PS1="\[\033[33m\]\$(parse_git_branch)\[\033[00m\] \w \$ "