-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
executable file
·53 lines (44 loc) · 1.46 KB
/
.bash_profile
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
41
42
43
44
45
46
47
48
49
50
51
52
# /etc/skel/.bash_profile
if [[ -z "${BASH_PROFILE_SOURCED}" ]]
then
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initialising new SSH agent..."
ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
ssh-add;
}
# Source SSH settings, if applicable
if [ -f "${SSH_ENV}" ]; then
. "${SSH_ENV}" > /dev/null
#ps ${SSH_AGENT_PID} doesn't work under cywgin
ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent > /dev/null || {
start_agent;
}
else
start_agent;
fi
GPG_TTY=$(tty)
export GPG_TTY
if [ -e /home/andsild/.nix-profile/etc/profile.d/nix.sh ]; then . /home/andsild/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
export BASH_PROFILE_SOURCED=1
# This file is sourced by bash for login shells. The following line
# runs your .bashrc and is recommended by the bash info pages.
[[ -f ~/.bashrc ]] && . ~/.bashrc
fi
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/aza4423/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/aza4423/miniconda3/etc/profile.d/conda.sh" ]; then
. "/Users/aza4423/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/aza4423/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<