-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases
92 lines (81 loc) · 2.18 KB
/
aliases
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
89
90
91
92
#
# bashrc/aliases
#
# conventions, common mistakes, and cool new powers
#
# dependencies
# cat_or_ls
# ls_or_cat
# tryhard
# /bin/lynx
# /bin/grep
# /bin/tree
# /bin/nmcli
# /bin/light
# /bin/tty-clock
# /bin/vim
# /bin/npm
# /bin/xinit
# /bin/blackbox
# /bin/minecraft-launcher
# [must be a systemctl flavor of linux]
#
#######
# i mix these up all the time ok?...
#alias cd='cd_or_vim'
#alias vim='vim_or_cd'
alias cd='cd+'
alias cat='cat_or_ls'
alias ls='ls_or_cat'
# dot dots
alias ..='cd+ ..'
alias ...='cd+ .. ..'
# ls variants
alias la='$LS -a'
alias lsc='$LS --color=always'
alias lsl='$LS -l -h'
alias lsd='$LS --group-directories-first'
# defaults
alias info='info --vi-keys'
alias lynx='lynx --session ~/.lynxsession'
alias grep='grep --exclude-dir="**/.git" --exclude-dir="**/node_modules"'
alias cp='cp -i'
alias mv='mv -i'
alias lessc='less -R'
alias lessh='LESSOPEN="| /bin/highlight -O xterm256 %s" LESS=" -R " less'
alias hi='lessh'
alias tree="tree -C -I 'node_modules|.git'"
alias tree~="tree -C -I 'node_modules|.git|data' ~"
# system
alias wifi='nmcli device wifi'
alias conn='nmcli con'
# TODO: write a friendlier wrapper around nmcli
alias cmdlist='compgen -A function -abck'
alias funlist='compgen -A function -a'
alias backlight='light -S'
alias stop='kill' #lol i just get this wrong every time
# sudo
alias pacman='sudo pacman'
alias systemctl='sudo systemctl'
alias visudo='sudo visudo'
#alias mount='sudo mount'
alias umount='sudo umount'
# power
alias shutdown='sudo systemctl poweroff' #*technically* dangerous; overrides shutdown
alias restart='sudo systemctl reboot'
alias suspend='sudo systemctl suspend'
# clocks
alias whattime='date +%l:%M%P'
alias ttyclock='tty-clock -s -t -c -C 5'
# x gon give it to ya
alias desktop='cd ~ && xinit'
alias fancy='cd ~ && _X_TRANSPARENCY=yes xinit'
alias xchromium='xinit /usr/bin/chromium'
alias minecraft='xinit /usr/bin/minecraft-launcher'
alias files='thunar'
# config
alias vimrc='vim ~/.vimrc'
alias menu='vim ~/.blackbox/menu'
#vim
alias vimsplit='vim -O2 -c "term++curwin" -c "wincmd l" -c "term++curwin" -c "wincmd h"'
alias splitvim='vim -O2 -c "term++curwin" -c "wincmd l" -c "term++curwin" -c "wincmd h"'