tenseleyflow/ndotfiles / ff4ec72

Browse files

simple aliases and keybind overrides

Authored by espadonne
SHA
ff4ec7270a557c30e454367211e171bf0a5fc589
Parents
ea7607a
Tree
76e1f25

2 changed files

StatusFile+-
A zsh/alias.zsh 68 0
A zsh/inputrc.zsh 12 0
zsh/alias.zshadded
@@ -0,0 +1,68 @@
1
+
2
+
3
+alias pls="sudo !!"
4
+
5
+# :::
6
+# :::: shelly ::::
7
+# ::::: :::::: :::::
8
+# 
9
+alias refresh="source ${HOME}/.zshrc"
10
+alias zconfig="micro ${HOME}/.zshrc || ${EDITOR} ${HOME}/.zshrc"
11
+
12
+
13
+# :::
14
+# :::: navigation ::::
15
+# ::::: :::::::::: :::::
16
+# 
17
+# NOTE: the short circuit wont work in bash
18
+#       and (may??) not ALWAYS work in zsh (or fish)
19
+#
20
+#       so what's the point?
21
+#       well with the short circuit you can do:
22
+#
23
+#            >>> up up up
24
+#
25
+# which will correctly change dirs to ../../../
26
+#
27
+alias bk="- || cd -"
28
+alias up="../ || cd ../"
29
+alias goclass="cd ${HOME}/Documents/Class/"
30
+alias goproj="cd ${HOME}/Documents/Project/"
31
+alias goorg="cd ${HOME}/Documents/GithubOrgs/"
32
+
33
+# :::
34
+# :::: python things ::::
35
+# ::::: ::::::::::::: :::::
36
+# 
37
+alias setpy="asdf set python"
38
+alias mange="python manage.py"
39
+
40
+# :::
41
+# :::: nodey things ::::
42
+# ::::: nodey things :::::
43
+# 
44
+alias ni="npm --install"
45
+alias setnode="asdf set nodejs"
46
+
47
+# :::
48
+# :::: gitty ::::
49
+# ::::: ::::: :::::
50
+# 
51
+alias gad="git add"
52
+alias gas="git status"
53
+alias gall="git add --all"
54
+alias gcomm="git commit --message"
55
+alias gpull="git pull origin trunk"
56
+alias gporg="git push origin trunk"
57
+alias gcamm="git commit --all --message"
58
+alias glogg="git log --online --graph --decorate --all"
59
+
60
+# :::
61
+# :::: make ::::
62
+# ::::: :::: :::::
63
+# 
64
+alias mk="make"
65
+alias mka="make all"
66
+alias mkr="make run"
67
+alias mkt="make test"
68
+alias mkc="make clean"
zsh/inputrc.zshadded
@@ -0,0 +1,12 @@
1
+# as long as in the $ZSH_CUSTOM dir, 
2
+# this is loaded automatically
3
+
4
+# alt-left/right: back/forward word
5
+bindkey '\e[1;3C' forward-word
6
+bindkey '\e[1;3D' backward-word
7
+
8
+# cmd+left/right: end/beg. line
9
+# NOTE: in wezterm this requires redirecting
10
+#		    the string to PTY via wezterm.action.SendString
11
+bindkey '\e[1;9C' end-of-line
12
+bindkey '\e[1;9D' beginning-of-line