aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2017-02-19 03:47:19 -0700
committerkatherine <shmibs@shmibbles.me>2017-02-19 03:47:19 -0700
commit4cd93b09b3a179515630114078739564a35af38d (patch)
tree9d4b873cca07f62f457acd82df0c433bd2af1535 /.zshrc
parent01cc1fd9f8d3484451fb33dc06d3eb76622dd7e0 (diff)
downloaddotfiles-4cd93b09b3a179515630114078739564a35af38d.tar.gz
move remaining funcs from .zshrc
everything should be modular now also, cleaned up make-gif to properly parse arguments and check things
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc17
1 files changed, 16 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 8426fab..41a9c2a 100644
--- a/.zshrc
+++ b/.zshrc
@@ -26,7 +26,7 @@ unsetopt beep
if [[ "$TERM" == "rxvt-unicode-256color" ]]; then
precmd() {
- print -Pn "\e]0;zsh: %(1j,%j job%(2j|s|); ,)%~\a"
+ print -Pn "\e]0;zsh:%(1j,%j job%(2j|s|); ,)%~\a"
}
preexec() {
@@ -134,12 +134,27 @@ fi
[[ "$(whence aiksaurus)" != "" ]] && alias thesaurus='aiksaurus'
[[ "$(whence ag)" != "" ]] && alias ag='ag --color-match "1;34"'
[[ "$(whence latex)" != "" ]] && alias latex='latex -output-format=pdf'
+[[ "$(whence startx)" != "" ]] && alias sx='startx'
if [[ "$(whence udevil)" != "" ]] then
alias vmount='udevil mount'
alias vumount='udevil umount'
fi
+################## FUNCTIONS ##################
+
+# ignore non-tracked files
+if [[ "$(whence git)" != "" ]] then
+git() {
+ if [[ $# -gt 0 ]] && [[ "$1" == "status" ]]; then
+ shift
+ $(whence -p git) status -uno "$@"
+ else
+ $(whence -p git) "$@"
+ fi
+}
+fi
+
################# OS SPECIFIC #################
case $(uname) in