-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile.bash
More file actions
88 lines (72 loc) · 2.21 KB
/
bash_profile.bash
File metadata and controls
88 lines (72 loc) · 2.21 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Git completion bash
source ~/.git-completion.bash
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PATH=~/bin:$PATH
export PS1="\[\033[1;95m\]\u\[\033[m\]@\[\033[1;93m\]\w\$(parse_git_branch)\[\033[m\] $ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
alias home='cd ~'
alias core='cd CODE/core'
alias design='cd DESIGN-stelltec/design'
alias status='git status'
alias co='git checkout'
alias cob='git checkout -b'
alias add='git add'
alias commit='git commit'
alias bash-profile='vim ~/.bash_profile'
alias run-profile='source ~/.bash_profile'
alias pull='git pull'
alias pullo='git pull origin'
alias push='git push'
alias pusho='git push origin'
alias branches='git branch'
alias run-server='cd ~/CODE/core && ./bin/run-db.sh && npm run devserver'
alias load-server='./bin/run-devserver.sh'
alias delete-branch='git branch -D'
alias sass-watch='sass --watch scss:css'
# up 'n' folders
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
# lock computer
alias lock='/System/Library/CoreServices/"Menu Extras"/User.menu/Contents/Resources/CGSession -suspend'
# hibernation and sleep settings
alias hibernate='sudo pmset -a hibernatemode 25'
alias sleep='sudo pmset -a hibernatemode 0'
alias safesleep='sudo pmset -a hibernatemode 3'
alias smartsleep='sudo pmset -a hibernatemode 2'
# Create simple app structure
# CD to the directory you want to create the site and run this command:
html_boilerplate='<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title></title>
<link href="css/app.css" rel="stylesheet">
<script src="js/scripts.js"></script>
</head>
<body>
</body>
</html>'
function create-site {
mkdir $1
pushd $1
mkdir css &&
mkdir scss &&
touch scss/app.scss &&
mkdir imgs &&
mkdir js &&
touch js/scripts.js &&
touch index.html &&
echo "$html_boilerplate" >> index.html
popd
}