forked from jaseemabid/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases.zsh
58 lines (50 loc) · 1.57 KB
/
aliases.zsh
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
# -*- mode: shell-script;-*-
# zsh aliases
# Move this file to .oh-my-zsh/custom, not tracked there.
# Author: Jaseem Abid
# Copy & paste from shell
alias c='xsel --clipboard --input'
alias p='xsel --clipboard --output'
# Listing
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# git
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias go='git checkout '
alias gl='git log --one-line'
alias gk='gitk --all&'
alias gg='gitg --all'
alias got='git '
alias get='git '
alias gits='git status '
alias get='git clone '
alias g='git '
# Data recovery is a myth
alias dd="echo -e '★★★★★★★★★★★★★★★★★★★★★'; echo -e 'Are you fucking sure?\n'; sleep 7; dd "
# Quickies
alias big="stat -c %s $1"
alias athena="ssh b090264cs@athena"
alias die="xset dpms force off"
alias yt="youtube-dl -twci -f 34 --console-title"
alias ty="yt"
alias hist="cat ~/.bash_history | grep $1"
alias untar="tar -zxvf $1"
alias backup="rsync -avuiWP --delete"
alias log="cat /var/log/messages.log | grep $1"
alias app="ps -e | grep $1"
alias ec="emacsclient"
alias record="ffmpeg -f x11grab -r 30 -s 1366x768 -i :0.0 -f alsa -ac 2 -i pulse -vcodec libx264 -acodec pcm_s16le screencast.mkv"
alias ack="/usr/bin/vendor_perl/ack"
alias n="node-gyp"
alias kil="xset dpms force off"
# git aliases
alias git-dep="sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev"
alias git-install="sudo make prefix=/usr gitwebdir=/usr/share/gitweb install"
# Alternatives
alias vi="emacsclient"
alias rm="rm -i"