forked from ozsun88/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.ubuntu
More file actions
31 lines (23 loc) · 667 Bytes
/
.ubuntu
File metadata and controls
31 lines (23 loc) · 667 Bytes
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
#!/bin/bash
# Configs for my VPS
echo 'Ubuntu profile loaded.'
# set default editor
export EDITOR='nano -w'
export VISUAL="$EDITOR"
# enable ls colors
alias ls="ls --color=auto"
# common places
alias s="cd /srv"
alias sk="cd /srv/static/sketch"
# nginx conf shortcut
alias ngc="sudo nano /etc/nginx/nginx.conf"
# clean nginx cache
alias ncc="sudo rm -rf /var/cache/nginx/*"
# restart nginx
alias nr="sudo restart nginx"
# show memory usage
alias mem="sudo python ~/ps_mem.py"
# hint for these shortcuts
alias hint="echo; cat $BASH_SRC_PATH/.ubuntu_hints; echo; echo; cat $BASH_SRC_PATH/.hints; echo; echo"
# show login message
. "$BASH_SRC_PATH"/.ubuntu_login