From 5020ded92cbd0df6a836ae42937e4b527ff2198a Mon Sep 17 00:00:00 2001 From: Abra Date: Wed, 29 Mar 2017 13:48:07 +0400 Subject: [PATCH] auto --- .../prompt/functions/prompt_abra_setup | 22 +++++++++++++------ .zprezto/runcoms/zalias | 2 ++ .zprezto/runcoms/zshrc | 8 +++++-- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/.zprezto/modules/prompt/functions/prompt_abra_setup b/.zprezto/modules/prompt/functions/prompt_abra_setup index 1632463..1a3ee65 100644 --- a/.zprezto/modules/prompt/functions/prompt_abra_setup +++ b/.zprezto/modules/prompt/functions/prompt_abra_setup @@ -5,13 +5,21 @@ pmodload 'helper' # %(x.a.b) -- if # color chart: https://upload.wikimedia.org/wikipedia/en/1/15/Xterm_256color_chart.svg -COLOR_PWD='141' -COLOR_PWD_ROOT='201' -COLOR_PROMPT_STARTER='85' -COLOR_TIME='244' -COLOR_USERNAME='34' -COLOR_AT='244' -COLOR_HOSTNAME='162' +# COLOR_PWD='141' +# COLOR_PWD_ROOT='201' +# COLOR_PROMPT_STARTER='85' +# COLOR_TIME='244' +# COLOR_USERNAME='34' +# COLOR_AT='244' +# COLOR_HOSTNAME='162' + +COLOR_PWD='cyan' +COLOR_PWD_ROOT='red' +COLOR_PROMPT_STARTER='green' +COLOR_TIME='green' +COLOR_USERNAME='blue' +COLOR_AT=$COLOR_USERNAME +COLOR_HOSTNAME=$COLOR_USERNAME NEWLINE=$'\n' diff --git a/.zprezto/runcoms/zalias b/.zprezto/runcoms/zalias index bf9c984..222bc8d 100644 --- a/.zprezto/runcoms/zalias +++ b/.zprezto/runcoms/zalias @@ -43,6 +43,8 @@ alias dus="du -kHhd0 * | gsort -h" alias p="perl -pe" +alias -g LATEST='*(om[1])' + #alias f1sql="/google/data/ro/projects/storage/f1/tools/f1-sql" #alias t="task" diff --git a/.zprezto/runcoms/zshrc b/.zprezto/runcoms/zshrc index f8cb7e4..704f91a 100644 --- a/.zprezto/runcoms/zshrc +++ b/.zprezto/runcoms/zshrc @@ -56,7 +56,7 @@ function .g-init() { } function twitch() { - livestreamer "http://www.twitch.tv/$1" source &! + livestreamer "http://www.twitch.tv/$1" ${@:2} } function is_local() { @@ -76,10 +76,14 @@ function make_user() { chown $1:nogroup -R /home/$1/ } +function latest() { + echo -n ("${(@f)$(ls *(om[1,$1]))}") +} + # ----------------------------------- END ALIASES -------------------------------------------------- export EDITOR=/usr/bin/vim export PATH=$PATH:$HOME/bin:$HOME/brew/bin -export DYLD_LIBRARY_PATH="/Developer/NVIDIA/CUDA-7.5/lib:/usr/local/cuda/lib" +export DYLD_LIBRARY_PATH="/Developer/NVIDIA/CUDA-8.0/lib:/usr/local/cuda/lib" # added by travis gem [ -f /Users/abra/.travis/travis.sh ] && source /Users/abra/.travis/travis.sh