-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path50_sample.sh
41 lines (28 loc) · 1.27 KB
/
50_sample.sh
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
# This example shows you how to make your own custom extensions to your bash profile
# Any time a user logs in with the bashrc extensions installed,
# the ~/profile.d/ folder (if it exists) is searched for all *.sh scripts
# which are then sourced in order.
# Lines with a hashtag in from of them are commented out
# MYSECRETPASSWORD='uW!llNVR_EVR_EVRguessThis1,haha'
# function myssh { ssh -p 2222 katniss@"$1"; }
# alias cdd="cd $HOME/dev"
# Lines without a hashtag are actually executed
# This will make the terminal go directly to the user's home directory when it launches
# cd "$HOME"
# This is all just normal bash that is just run as if you'd directly typed it in with your hands
# Default prompt, see this for details:
# http://tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html
# PS1='\u@\H:${PWD} \$ '
# Show the git branch name in yellow
ps1_add_fn git-branch-name YELLOW '' ' '
# Show the UTC ISO-8601 timestamp in green
# ps1_add_fn date-8601 GREEN
# Show the local time ISO-8601 timestamp in cyan
ps1_add_fn date-8601-local CYAN
# Show the last return code
toggle_return_code_prompt
# Set the terminal title to the instance name and the current working directory
ps1_title () {
set_terminal_title "$INSTANCE_NAME:$PWD"
}
ps1_add_fn ps1_title RED '' ''