aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.bash_profile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-04-25 18:46:05 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-04-25 18:46:05 +0300
commit5218b3e97baf19270912089ac373ab3d1c0a6a3b (patch)
treedb91c58cae6c1e005533f09f9151982b6e5aa067 /.bash_profile
downloadlinux-home-5218b3e97baf19270912089ac373ab3d1c0a6a3b.tar.gz
linux-home-5218b3e97baf19270912089ac373ab3d1c0a6a3b.zip
initial commit
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile60
1 files changed, 60 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile
new file mode 100644
index 0000000..2732697
--- /dev/null
+++ b/.bash_profile
@@ -0,0 +1,60 @@
+# To the extent possible under law, the author(s) have dedicated all
+# copyright and related and neighboring rights to this software to the
+# public domain worldwide. This software is distributed without any warranty.
+# You should have received a copy of the CC0 Public Domain Dedication along
+# with this software.
+# If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
+
+# base-files version 4.2-3
+
+# ~/.bash_profile: executed by bash(1) for login shells.
+
+# The latest version as installed by the Cygwin Setup program can
+# always be found at /etc/defaults/etc/skel/.bash_profile
+
+# Modifying /etc/skel/.bash_profile directly will prevent
+# setup from updating it.
+
+# The copy in your home directory (~/.bash_profile) is yours, please
+# feel free to customise it to create a shell
+# environment to your liking. If you feel a change
+# would be benifitial to all, please feel free to send
+# a patch to the cygwin mailing list.
+
+# User dependent .bash_profile file
+
+# source the users bashrc if it exists
+if [ -f "${HOME}/.bashrc" ] ; then
+ source "${HOME}/.bashrc"
+fi
+
+# Set PATH so it includes user's private bin if it exists
+# if [ -d "${HOME}/bin" ] ; then
+# PATH="${HOME}/bin:${PATH}"
+# fi
+
+# Set MANPATH so it includes users' private man if it exists
+# if [ -d "${HOME}/man" ]; then
+# MANPATH="${HOME}/man:${MANPATH}"
+# fi
+
+# Set INFOPATH so it includes users' private info if it exists
+# if [ -d "${HOME}/info" ]; then
+# INFOPATH="${HOME}/info:${INFOPATH}"
+# fi
+
+spawn_ssh_agent() {
+ if [ -z "${SSH_AGENT_PID:+x}" -o -z "${SSH_AUTH_SOCK:+x}" ]; then
+ local ssh_agent
+ ssh_agent="$( which ssh-agent 2> /dev/null )" || return $?
+ eval "$( "$ssh_agent" -s )" > /dev/null || return $?
+ trap "kill $SSH_AGENT_PID" 0
+ ssh-add || return $?
+ fi
+}
+
+if [ "$( uname -o )" == "Cygwin" ]; then
+ spawn_ssh_agent
+fi
+
+echo "Welcome to $( hostname )"