From bb3ba5b0c3625d3c3dfec7be281642d9cb5b55c4 Mon Sep 17 00:00:00 2001 From: ArcheyDevil Date: Thu, 12 Apr 2012 17:17:51 +1000 Subject: [PATCH] Updated more omz, just a few tweaks and now omz plugin ... works as expected. --- omz | 9 +++--- plugins/archlinux/meat/meat.plugin.zsh | 0 plugins/colorizer/colorizer.plugin.zsh | 42 -------------------------- 3 files changed, 4 insertions(+), 47 deletions(-) delete mode 100644 plugins/archlinux/meat/meat.plugin.zsh delete mode 100644 plugins/colorizer/colorizer.plugin.zsh diff --git a/omz b/omz index 2af5b8368..3225fa925 100644 --- a/omz +++ b/omz @@ -22,15 +22,14 @@ omz () { for config_file ({$ZSH/lib,$OMZ}/*.zsh(N)) source $config_file - # !next - omz plugin + omz plugin $plugins omz theme ;; # Load plugins, can be used to load a plugin during runtime. ("plugin") shift; local plugin files - for plugin in $plugins $@; do - files=({$OMZ,$ZSH}/plugins/$plugin/$(basename $plugin).plugin.zsh(N)) + for plugin in $@; do + files=({$OMZ,$ZSH}/plugins/$plugin/*.zsh(N)) [[ ${#files} -eq 0 ]] && omz_log_msg "$plugin: Plugin not found." && continue - source $files[1] || omz_log_msg "$plugin: Error, can't source plugin file." + source $files[1] || omz_log_msg "$plugin: Error, can't source plugin file." done ;; ("theme") local theme zstyle -a :omz:style theme theme diff --git a/plugins/archlinux/meat/meat.plugin.zsh b/plugins/archlinux/meat/meat.plugin.zsh deleted file mode 100644 index e69de29bb..000000000 diff --git a/plugins/colorizer/colorizer.plugin.zsh b/plugins/colorizer/colorizer.plugin.zsh deleted file mode 100644 index 16f8267c8..000000000 --- a/plugins/colorizer/colorizer.plugin.zsh +++ /dev/null @@ -1,42 +0,0 @@ -# This plugin is in the making, no need to start it. -# The point of this plugin is so we can use our own $fg replacements that respect customization! -# -# A method to get/collect escape codes from #RRGGBB hex needs to be added but only used to gather the escape codes. ( should be two-way. ) -__colors=(cyan white yellow magenta black blue red default grey green) -_ecolors=("\e[36m" "\e[37m" "\e[33m" "\e[35m" "\e[30m" "\e[34m" "\e[31m" "\e[39m" "\e[30m" "\e[32m") -# This is just an easy way to show all the colors. -echo ${^_ecolors}t - -## Extracted from my .Xdefaults; want to merge these colors into the terminal; TODO: Create a method/function to convert the #RRGGBB into an escapable character for strings! -#!--[Colours]--! -#! black -#URxvt*color0: #000000 -#URxvt*color8: #999999 -# -#! red -#URxvt*color1: #BD484A -#URxvt*color9: #F55D60 -# -#! green -#!URxvt*color2: #66994E -#!URxvt*color10: #93DB6F -# -#! yellow -#URxvt*color3: #C4A043 -#URxvt*color11: #F0C452 -# -#! blue -#URxvt*color4: #567B94 -#URxvt*color12: #7CB2D6 -# -#! magenta -#URxvt*color5: #BB88DD -#URxvt*color13: #D7AFD7 -# -#! cyan -#URxvt*color6: #00BBDD -#URxvt*color14: #0DEBFF -# -#! white -#URxvt*color7: #C7C7C7 -#URxvt*color15: #D9D9D9