diff options
| -rw-r--r-- | files/.zsh/rc/S20_environment | 5 | ||||
| -rw-r--r-- | files/.zsh/rc/S40_completion | 7 | ||||
| -rw-r--r-- | files/.zsh/rc/S50_aliases | 4 | ||||
| -rw-r--r-- | files/.zsh/rc/S50_functions | 8 | ||||
| m--------- | files/.zsh/zsh-completions | 0 |
5 files changed, 19 insertions, 5 deletions
diff --git a/files/.zsh/rc/S20_environment b/files/.zsh/rc/S20_environment index d265399..02cf5fe 100644 --- a/files/.zsh/rc/S20_environment +++ b/files/.zsh/rc/S20_environment @@ -7,6 +7,11 @@ fi path=(~/bin $path) +fpath=($HOME/.zsh/zsh-completions/src $fpath) +# To force rebuild zcompdump: +# rm -f ~/.zcompdump; compinit + + export SHELL=/bin/zsh export MANWIDTH=80 diff --git a/files/.zsh/rc/S40_completion b/files/.zsh/rc/S40_completion index 121bad7..caf08e2 100644 --- a/files/.zsh/rc/S40_completion +++ b/files/.zsh/rc/S40_completion @@ -29,7 +29,7 @@ hosts=($( ( \ zstyle ':completion:*' hosts $hosts zstyle ':completion:*:hosts' list-colors '=(#b)(*)(bobov.name)=01;30=01;31' '=[^.]#=01;31' -users=(root dexter) +users=(root dexter anton) zstyle ':completion:*' users $users # }}} @@ -37,8 +37,7 @@ zstyle ':completion:*' users $users # Ignore for vim zstyle ':completion:*:*:vi(m|):*:*files' ignored-patterns '*?.(aux|dvi|ps|pdf|bbl|toc|lot|lof|o|cm?|class|py[oc])' -fpath=($HOME/.zsh/zsh-completions/src $fpath) -# To force rebuild zcompdump: -# rm -f ~/.zcompdump; compinit +# Ledger completion like hledger +compdef _hledger ledger # vim: et ft=zsh fdm=marker : diff --git a/files/.zsh/rc/S50_aliases b/files/.zsh/rc/S50_aliases index bed349f..68563da 100644 --- a/files/.zsh/rc/S50_aliases +++ b/files/.zsh/rc/S50_aliases @@ -29,7 +29,7 @@ alias xcd='cd "$(xclip -o)"' alias man='LANG=C man' -salias up='aptitude -u' +alias upa='aptitude -u' alias cclip='xclip -selection clipboard' @@ -40,4 +40,6 @@ alias mocp='PULSE_LATENCY_MSEC=60 mocp' alias rscp='rsync -avzP' +alias yd-date='youtube-dl --output="%(upload_date)s - %(title)s-%(id)s.%(ext)s"' + # vim: et ft=zsh : diff --git a/files/.zsh/rc/S50_functions b/files/.zsh/rc/S50_functions index a235839..7998441 100644 --- a/files/.zsh/rc/S50_functions +++ b/files/.zsh/rc/S50_functions @@ -6,4 +6,12 @@ ppgrep() { pgrep "$@" | xargs --no-run-if-empty ps fp } +stocks() { + curl -s 'http://download.finance.yahoo.com/d/quotes.csv?s='$1'&f=l1' +} + +xe() { + stocks "$1=x" +} + # vim: ft=zsh : diff --git a/files/.zsh/zsh-completions b/files/.zsh/zsh-completions -Subproject d992bd0ab99cfd7cb3b116ca2b34bd42940dfc9 +Subproject c2dde89fb34e2734106e50689bf4127f6b0a288 |
