blob: 5e01cf0a063648d369589e7442bc7712806f3463 (
plain)
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
|
# vi:syntax=sh
alias egrep='egrep --color=auto'
alias tmux="tmux -2"
alias v='vim'
# I like feedback
alias cp='cp -v'
alias mv='mv -v'
# i like ls
alias ls='ls --color -h --group-directories-first'
alias ll='ls -lh'
alias lsh='ls -lh'
alias la='ls -lah'
# top
alias cpu='top -o cpu'
alias mem='top -o rsize' # memory
# cd
alias ...='cd ../../'
alias ....='cd ../../../'
alias .....='cd ../../../../'
alias ai="sudo apt install"
alias as="apt-cache search"
alias fdisk="sudo fdisk"
#Tmux aliases
alias mopen='tmux attach-session -t'
alias mnew='tmux new -s'
alias xrestart='sudo systemctl restart nginx'
alias djrestart='sudo systemctl restart uwsgi'
#Git aliases
alias gs="git status"
alias ga="git add"
alias gc="git commit "
alias gl="git log"
alias findname='find . -name $1'
#Django web dev
alias manage='./config/djadmin.sh '
alias virt='source venv/bin/activate'
alias serve='python -m http.server'
alias servenet="python -c 'import BaseHTTPServer as bhs, SimpleHTTPServer as shs; bhs.HTTPServer(('\''192.168.1.10'\'', 8080), shs.SimpleHTTPRequestHandler).serve_forever()'"
alias @less="fc -s | less"
# list TODO/FIX lines from the current project
alias todos="ack -n --nogroup '(TODO|FIX(ME)?):'"
# strip spaces in file names
alias stripspaces='for f in *\ *; do mv "$f" "${f// /_}"; done'
|