Browse code

bash_profile (cygwin) - v1.0 - see Versions

Fred authored on11/08/2014 17:18:55
Showing1 changed files
... ...
@@ -1,53 +1,33 @@
1
-# To the extent possible under law, the author(s) have dedicated all 
2
-# copyright and related and neighboring rights to this software to the 
3
-# public domain worldwide. This software is distributed without any warranty. 
4
-# You should have received a copy of the CC0 Public Domain Dedication along 
5
-# with this software. 
6
-# If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. 
1
+# Title: .bash_profile
2
+# Author: Frédéric CHEVALIER <f15.chevalier@gmail.com>
3
+# Version: 1.0
4
+# Created in: 2014-01-07
5
+# Modified in: 2014-08-11
7 6
 
8
-# base-files version 4.1-1
9 7
 
10
-# ~/.bash_profile: executed by bash(1) for login shells.
8
+#==========#
9
+# Versions #
10
+#==========#
11 11
 
12
-# The latest version as installed by the Cygwin Setup program can
13
-# always be found at /etc/defaults/etc/skel/.bash_profile
12
+# v1.0 - 2014-08-11: rewriting for better interplay with .bashrc
13
+# v0.0 - 2014-01-07: creation
14 14
 
15
-# Modifying /etc/skel/.bash_profile directly will prevent
16
-# setup from updating it.
17 15
 
18
-# The copy in your home directory (~/.bash_profile) is yours, please
19
-# feel free to customise it to create a shell
20
-# environment to your liking.  If you feel a change
21
-# would be benifitial to all, please feel free to send
22
-# a patch to the cygwin mailing list.
23 16
 
24
-# User dependent .bash_profile file
17
+#===============================#
18
+# Get the aliases and functions #
19
+#===============================#
25 20
 
26
-# source the users bashrc if it exists
27
-if [ -f "${HOME}/.bashrc" ] ; then
28
-  source "${HOME}/.bashrc"
21
+if [[ -f ~/.bashrc ]]
22
+then
23
+	source ~/.bashrc
29 24
 fi
30 25
 
31
-# Set PATH so it includes user's private bin if it exists
32
-# if [ -d "${HOME}/bin" ] ; then
33
-#   PATH="${HOME}/bin:${PATH}"
34
-# fi
35 26
 
36
-# Set MANPATH so it includes users' private man if it exists
37
-# if [ -d "${HOME}/man" ]; then
38
-#   MANPATH="${HOME}/man:${MANPATH}"
39
-# fi
40 27
 
41
-# Set INFOPATH so it includes users' private info if it exists
42
-# if [ -d "${HOME}/info" ]; then
43
-#   INFOPATH="${HOME}/info:${INFOPATH}"
44
-# fi
45
-
46
-
47
-
48
-#=========#
49
-# Aliases #
50
-#=========#
28
+#==================#
29
+# Specific aliases #
30
+#==================#
51 31
 
52 32
 # Shortcuts for ssh operations
53 33
 alias medusa='ssh medusa'
... ...
@@ -72,3 +52,8 @@ export PATH="/usr/local/bin:/usr/bin:/cygdrive/c/Program Files/Common Files/Micr
72 52
 # Set up the display variable to get an automatique display in the X server
73 53
 export DISPLAY=:0.0
74 54
 
55
+# Set up multi-screen display for mintty
56
+if [[ $(which multiscreen 2> /dev/null) ]]
57
+then
58
+	multiscreen
59
+fi