This repository was archived by the owner on Dec 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbashrc.linux
More file actions
40 lines (39 loc) · 1.4 KB
/
Copy pathbashrc.linux
File metadata and controls
40 lines (39 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 foldmethod=marker filetype=bash
# ----------------------------------------------------------------------------
# Author: Mubarak Alrashidi (DeaDSouL)
# Package: dsBash
# Info: Setting up your bash environment
# License: GNU/GPL v3
# URL: https://gitlab.com/DeaDSouL/dsBash
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# PATH #{{{
for p in "/usr/local/bin" \
"/usr/local/sbin" \
"/usr/local/src/bitcoin/bin" \
"$HOME/.local/bin" \
"$HOME/bin"; do
if ! [[ "$PATH" =~ "${p}:" ]]; then
[[ -d "${p}" ]] && PATH="${p}:${PATH}"
fi
done
export PATH
#}}}
# make less more friendly for non-text input files, see lesspipe(1) #{{{
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
#}}}
# 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)"
fi
#}}}
# Using Powerline #{{{
if [ -f `which powerline-daemon` ]; then
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
fi
dsPowerlineRC='/usr/share/powerline/bash/powerline.sh'
[[ -f "${dsPowerlineRC}" ]] && source "${dsPowerlineRC}";
#}}}
# ----------------------------------------------------------------------------