65 lines
1.6 KiB
Bash
65 lines
1.6 KiB
Bash
# /etc/profile
|
|
|
|
# Set our umask
|
|
umask 022
|
|
|
|
# Append "$1" to $PATH when not already in.
|
|
# This function API is accessible to scripts in /etc/profile.d
|
|
append_path () {
|
|
case ":$PATH:" in
|
|
*:"$1":*)
|
|
;;
|
|
*)
|
|
PATH="${PATH:+$PATH:}$1"
|
|
esac
|
|
}
|
|
|
|
# Append our default paths
|
|
append_path '/usr/local/sbin'
|
|
append_path '/usr/local/bin'
|
|
append_path '/usr/bin'
|
|
|
|
# Force PATH to be environment
|
|
export PATH
|
|
|
|
# Load profiles from /etc/profile.d
|
|
if test -d /etc/profile.d/; then
|
|
for profile in /etc/profile.d/*.sh; do
|
|
test -r "$profile" && . "$profile"
|
|
done
|
|
unset profile
|
|
fi
|
|
|
|
# Unload our profile API functions
|
|
unset -f append_path
|
|
|
|
# Source global bash config, when interactive but not posix or sh mode
|
|
if test "$BASH" &&\
|
|
test "$PS1" &&\
|
|
test -z "$POSIXLY_CORRECT" &&\
|
|
test "${0#-}" != sh &&\
|
|
test -r /etc/bash.bashrc
|
|
then
|
|
. /etc/bash.bashrc
|
|
fi
|
|
|
|
# Termcap is outdated, old, and crusty, kill it.
|
|
unset TERMCAP
|
|
|
|
# Man is much better than us at figuring this out
|
|
unset MANPATH
|
|
|
|
###
|
|
###BackBlaze B2###
|
|
export B2_ACCOUNT_ID=8582a42a3b99 #Master Key
|
|
export B2_ACCOUNT_KEY=00041845e8dd29d7e3d091d77bb8a631ee71332be7 #Master Application ID
|
|
#export B2_ACCOUNT_ID=0008582a42a3b990000000003
|
|
#export B2_ACCOUTN_KEY=K000Zlz7MtKzu2LG0VZlYkeUitGeuHM
|
|
export RESTIC_PASSWORD='f$774$#je4%U8vp8ov*UsZMHqL$m3Smh#fEbbt7hyULQxfnnWmSiS5MEndzVWT$$n^@s$P*o4vV*^rgv3jvvrv@y35VppU$$y*vnG5V@botU&4$39Y6t9HSb3Z548M!4'
|
|
#export RESTIC_REPOSITORY="b2:Gerbil-TK" #Seperate buckets so not neccesarily
|
|
### Shmick's Environment Variables
|
|
export SCRIPTS="/home/shmick/Scripts"
|
|
### Aliases ###
|
|
alias donnagurai="$SCRIPTS/Donnagurai"
|
|
alias uu="$SCRIPTS/UnboundUnbound"
|