inital commit of clone of old repo
This commit is contained in:
BEAST
DUFRESNE
Linux
home
burchettm
.config
awesome
.rc.lua.swpREADME
lib
alttabapwarchmenu.lua
menurc.luaawful
autofocus.luabutton.luaclient.luacompletion.luadbus.luahooks.luainit.luakey.lua
beautiful.luacal.luanaughty.lualayout
menu.luamouse
placement.luaprompt.luaremote.luarules.luascreen.luastartup_notification.luatag.luatitlebar.luatooltip.luautil.luawibox.luawidget
scratch
vicious
scripts
themes
awesomeo
READMEawesome16.pngbackground.pngbackground_white.png
layouts
dwindle.pngdwindlew.pngfairh.pngfairhw.pngfairv.pngfairvw.pngfloating.pngfloatingw.pngfullscreen.pngfullscreenw.pngmagnifier.pngmagnifierw.pngmax.pngmaxw.pngspiral.pngspiralw.pngtile.pngtilebottom.pngtilebottomw.pngtileleft.pngtileleftw.pngtiletop.pngtiletopw.pngtilew.png
starthere.pngsubmenu.pngtaglist
tasklist
theme.luatitlebar
close_focus.pngclose_normal.pngfloating_focus_active.pngfloating_focus_inactive.pngfloating_normal_active.pngfloating_normal_inactive.pngmaximized_focus_active.pngmaximized_focus_inactive.pngmaximized_normal_active.pngmaximized_normal_inactive.pngontop_focus_active.pngontop_focus_inactive.pngontop_normal_active.pngontop_normal_inactive.pngsticky_focus_active.pngsticky_focus_inactive.pngsticky_normal_active.pngsticky_normal_inactive.png
NOVA
README
boot
syslinux
home
.vimrcaud-Default.tmux.conf.xinitrc
hwinfolshw.zsh
.zshrc.zshrootaliasbindkeyscompletionexportshistfilehistoryhistoryrootinteractivepromptpromptrootsetopt
zsh-syntax-highlight
.gitignoreCOPYING.mdREADME.md
highlighters
README.md
brackets
cursor
main
pattern
root
tests
zsh-syntax-highlighting.plugin.zshzsh-syntax-highlighting.zshburchettm
.conky
.fonts
ARIALN.TTFARIALNB.TTFARIALNBI.TTFARIALNI.TTFBankGothicLtBTLight.ttfBankGothicMdBTMedium.ttfarial.ttfarialbd.ttfarialbi.ttfariali.ttfariblk.ttf
.gtkrc-2.0.themes
Crux Black
Crux Blue
Crux Green
Crux Orange
Crux Red
Crux Violet
Crux White
Crux of A-Ron
Dust Cold
Dust_compiz_settings.sh
gtk-2.0
index.thememetacity-1
button_close_normal.pngbutton_close_prelight.pngbutton_close_pressed.pngbutton_max_normal.pngbutton_max_prelight.pngbutton_max_pressed.pngbutton_menu_normal.pngbutton_menu_prelight.pngbutton_menu_pressed.pngbutton_min_normal.pngbutton_min_prelight.pngbutton_min_pressed.pngmenu.pngmetacity-theme-1.xml
panel-background-cold-32px.pngpanel-background-cold.pngpanel-background-cold2-32px.pngpanel-background-cold2.pngpanel-solid-cold-background-32px.pngpanel-solid-cold-background.pngpanel-solid-cold-background2-32px.pngpanel-solid-cold-background2.pngxfwm4
bottom-active.xpmbottom-inactive.xpmbottom-left-active.xpmbottom-left-inactive.xpmbottom-right-active.xpmbottom-right-inactive.xpmclose-active.xpmclose-inactive.xpmclose-pressed.xpmhide-active.xpmhide-inactive.xpmhide-pressed.xpmleft-active.xpmleft-inactive.xpmmaximize-active.xpmmaximize-inactive.xpmmaximize-pressed.xpmmenu-active.xpmmenu-inactive.xpmmenu-pressed.xpmright-active.xpmright-inactive.xpmthemerctitle-1-active.xpmtitle-1-inactive.xpmtitle-2-active.xpmtitle-2-inactive.xpmtitle-3-active.xpmtitle-3-inactive.xpmtitle-4-active.xpmtitle-4-inactive.xpmtitle-5-active.xpmtitle-5-inactive.xpmtop-left-active.xpmtop-left-inactive.xpmtop-right-active.xpmtop-right-inactive.xpm
XFCE Crux Black
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
XFCE Crux Blue
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
XFCE Crux Green
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
XFCE Crux Orange
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
XFCE Crux Red
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
XFCE Crux Violet
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
XFCE Crux of A-Ron
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
axiom
gtk-2.0
xfwm4
bottom-active.xpmbottom-inactive.xpmbottom-left-active.xpmbottom-left-inactive.xpmbottom-right-active.xpmbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.xpmhide-inactive.xpmhide-prelight.xpmhide-pressed.xpmleft-active.xpmleft-inactive.xpmmaximize-active.xpmmaximize-inactive.xpmmaximize-prelight.xpmmaximize-pressed.xpmmaximize-toggled-active.xpmmaximize-toggled-inactive.xpmmaximize-toggled-prelight.xpmmaximize-toggled-pressed.xpmmenu-active.xpmmenu-inactive.xpmmenu-pressed.xpmright-active.xpmright-inactive.xpmscreenshot.pngshade-active.xpmshade-inactive.xpmshade-prelight.xpmshade-pressed.xpmshade-toggled-active.xpmshade-toggled-inactive.xpmshade-toggled-prelight.xpmshade-toggled-pressed.xpmstick-active.xpmstick-inactive.xpmstick-prelight.xpmstick-pressed.xpmstick-toggled-active.xpmstick-toggled-inactive.xpmstick-toggled-prelight.xpmstick-toggled-pressed.xpmthemerctitle-1-active.xpmtitle-1-inactive.xpmtitle-2-active.xpmtitle-2-inactive.xpmtitle-3-active.xpmtitle-3-inactive.xpmtitle-4-active.xpmtitle-4-inactive.xpmtitle-5-active.xpmtitle-5-inactive.xpmtop-left-active.xpmtop-left-inactive.xpmtop-right-active.xpmtop-right-inactive.xpm
axiomd
gtk-2.0
xfwm4
bottom-active.xpmbottom-inactive.xpmbottom-left-active.xpmbottom-left-inactive.xpmbottom-right-active.xpmbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.xpmhide-inactive.xpmhide-prelight.xpmhide-pressed.xpmleft-active.xpmleft-inactive.xpmmaximize-active.xpmmaximize-inactive.xpmmaximize-prelight.xpmmaximize-pressed.xpmmaximize-toggled-active.xpmmaximize-toggled-inactive.xpmmaximize-toggled-prelight.xpmmaximize-toggled-pressed.xpmmenu-active.xpmmenu-inactive.xpmmenu-pressed.xpmright-active.xpmright-inactive.xpmscreenshot.pngshade-active.xpmshade-inactive.xpmshade-prelight.xpmshade-pressed.xpmshade-toggled-active.xpmshade-toggled-inactive.xpmshade-toggled-prelight.xpmshade-toggled-pressed.xpmstick-active.xpmstick-inactive.xpmstick-prelight.xpmstick-pressed.xpmstick-toggled-active.xpmstick-toggled-inactive.xpmstick-toggled-prelight.xpmstick-toggled-pressed.xpmthemerctitle-1-active.xpmtitle-1-inactive.xpmtitle-2-active.xpmtitle-2-inactive.xpmtitle-3-active.xpmtitle-3-inactive.xpmtitle-4-active.xpmtitle-4-inactive.xpmtitle-5-active.xpmtitle-5-inactive.xpmtop-left-active.xpmtop-left-inactive.xpmtop-right-active.xpmtop-right-inactive.xpm
usr
Old
ATARI
.tmux.confREADME
Screenshots
home
burchettm
.config
awesome
READMErc.luaxdg-menu.luaxdg-menu.lua.old
lib
awful
autofocus.luabutton.luaclient.luacompletion.luadbus.luahooks.luainit.luakey.lua
beautiful.luacal.luanaughty.lualayout
menu.luamouse
placement.luaprompt.luaremote.luarules.luascreen.luastartup_notification.luatag.luatitlebar.luatooltip.luautil.luawibox.luawidget
vicious
scripts
themes
awesomeo
READMEawesome16.pngbackground.pngbackground_white.png
layouts
dwindle.pngdwindlew.pngfairh.pngfairhw.pngfairv.pngfairvw.pngfloating.pngfloatingw.pngfullscreen.pngfullscreenw.pngmagnifier.pngmagnifierw.pngmax.pngmaxw.pngspiral.pngspiralw.pngtile.pngtilebottom.pngtilebottomw.pngtileleft.pngtileleftw.pngtiletop.pngtiletopw.pngtilew.png
starthere.pngsubmenu.pngtaglist
tasklist
theme.luatitlebar
close_focus.pngclose_normal.pngfloating_focus_active.pngfloating_focus_inactive.pngfloating_normal_active.pngfloating_normal_inactive.pngmaximized_focus_active.pngmaximized_focus_inactive.pngmaximized_normal_active.pngmaximized_normal_inactive.pngontop_focus_active.pngontop_focus_inactive.pngontop_normal_active.pngontop_normal_inactive.pngsticky_focus_active.pngsticky_focus_inactive.pngsticky_normal_active.pngsticky_normal_inactive.png
BEAST
MyLittlePony
NOVA-FD
README
Screenshots
etc
home
.vimrc
.zsh
.highlighting.swp.zshrc.zshrootaliasbindkeyscompletionexportshighlightinghistfilehistoryhistoryrootpromptpromptrootsetopt
zsh-syntax-highlight
COPYING.mdGREETINGS.mdREADME.md
highlighters
tests
zsh-syntax-highlighting.plugin.zshzsh-syntax-highlighting.zshburchettm
.config
Terminal
awesome
READMErc.luaxdg-menu.luaxdg-menu.lua.old
lib
awful
autofocus.luabutton.luaclient.luacompletion.luadbus.luahooks.luainit.luakey.lua
beautiful.luacal.luanaughty.lualayout
menu.luamouse
placement.luaprompt.luaremote.luarules.luascreen.luastartup_notification.luatag.luatitlebar.luatooltip.luautil.luawibox.luawidget
vicious
scripts
themes
awesomeo
READMEawesome16.pngbackground.pngbackground_white.png
layouts
dwindle.pngdwindlew.pngfairh.pngfairhw.pngfairv.pngfairvw.pngfloating.pngfloatingw.pngfullscreen.pngfullscreenw.pngmagnifier.pngmagnifierw.pngmax.pngmaxw.pngspiral.pngspiralw.pngtile.pngtilebottom.pngtilebottomw.pngtileleft.pngtileleftw.pngtiletop.pngtiletopw.pngtilew.png
starthere.pngsubmenu.pngtaglist
tasklist
theme.luatitlebar
close_focus.pngclose_normal.pngfloating_focus_active.pngfloating_focus_inactive.pngfloating_normal_active.pngfloating_normal_inactive.pngmaximized_focus_active.pngmaximized_focus_inactive.pngmaximized_normal_active.pngmaximized_normal_inactive.pngontop_focus_active.pngontop_focus_inactive.pngontop_normal_active.pngontop_normal_inactive.pngsticky_focus_active.pngsticky_focus_inactive.pngsticky_normal_active.pngsticky_normal_inactive.png
.conky
.fonts
.themes
XFCE Crux of A-Ron
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
.vim
colors
.weechat
usr
NOVA
README
Screenshots
Aug11-Clean.pngAug11-Dirty.pngAug11-Floating.pngFeb12-Clean.pngFeb12-Dirty.pngFeb12-Floating.pngJul11-Awesome-Clean.pngJul11-Awesome-Dirty.pngNov11-Clean.pngNov11-Dirty.pngNov11-Floating.pngOct11-Clean.pngOct11-Dirty.pngOct11-Floating.pngSep11-Clean.pngSep11-Dirty.pngSep11-Floating.png
thumb
etc
home
.bash_aliases.bashrc.bashroot.vimrc
hwinfolshw.zsh
burchettm
.Xdefaultsaud-Default.tmux.conf
.config
Terminal
awesome
READMEmenurc.lua
lib
awful
autofocus.luabutton.luaclient.luacompletion.luadbus.luahooks.luainit.luakey.lua
beautiful.luacal.luanaughty.lualayout
menu.luamouse
placement.luaprompt.luaremote.luarules.luascreen.luastartup_notification.luatag.luatitlebar.luatooltip.luautil.luawibox.luawidget
scratch
vicious
scripts
themes
awesomeo
READMEawesome16.pngbackground.pngbackground_white.png
layouts
dwindle.pngdwindlew.pngfairh.pngfairhw.pngfairv.pngfairvw.pngfloating.pngfloatingw.pngfullscreen.pngfullscreenw.pngmagnifier.pngmagnifierw.pngmax.pngmaxw.pngspiral.pngspiralw.pngtile.pngtilebottom.pngtilebottomw.pngtileleft.pngtileleftw.pngtiletop.pngtiletopw.pngtilew.png
starthere.pngsubmenu.pngtaglist
tasklist
theme.luatitlebar
close_focus.pngclose_normal.pngfloating_focus_active.pngfloating_focus_inactive.pngfloating_normal_active.pngfloating_normal_inactive.pngmaximized_focus_active.pngmaximized_focus_inactive.pngmaximized_normal_active.pngmaximized_normal_inactive.pngontop_focus_active.pngontop_focus_inactive.pngontop_normal_active.pngontop_normal_inactive.pngsticky_focus_active.pngsticky_focus_inactive.pngsticky_normal_active.pngsticky_normal_inactive.png
.conky
.fonts
.gtkrc-2.0.opera
.rtorrent.rc.themes
Crux Black
Crux Blue
Crux Green
Crux Orange
Crux Red
Crux Violet
Crux White
Crux of A-Ron
Dust Cold
Dust_compiz_settings.sh
gtk-2.0
index.thememetacity-1
button_close_normal.pngbutton_close_prelight.pngbutton_close_pressed.pngbutton_max_normal.pngbutton_max_prelight.pngbutton_max_pressed.pngbutton_menu_normal.pngbutton_menu_prelight.pngbutton_menu_pressed.pngbutton_min_normal.pngbutton_min_prelight.pngbutton_min_pressed.pngmenu.pngmetacity-theme-1.xml
panel-background-cold-32px.pngpanel-background-cold.pngpanel-background-cold2-32px.pngpanel-background-cold2.pngpanel-solid-cold-background-32px.pngpanel-solid-cold-background.pngpanel-solid-cold-background2-32px.pngpanel-solid-cold-background2.pngxfwm4
bottom-active.xpmbottom-inactive.xpmbottom-left-active.xpmbottom-left-inactive.xpmbottom-right-active.xpmbottom-right-inactive.xpmclose-active.xpmclose-inactive.xpmclose-pressed.xpmhide-active.xpmhide-inactive.xpmhide-pressed.xpmleft-active.xpmleft-inactive.xpmmaximize-active.xpmmaximize-inactive.xpmmaximize-pressed.xpmmenu-active.xpmmenu-inactive.xpmmenu-pressed.xpmright-active.xpmright-inactive.xpmthemerctitle-1-active.xpmtitle-1-inactive.xpmtitle-2-active.xpmtitle-2-inactive.xpmtitle-3-active.xpmtitle-3-inactive.xpmtitle-4-active.xpmtitle-4-inactive.xpmtitle-5-active.xpmtitle-5-inactive.xpmtop-left-active.xpmtop-left-inactive.xpmtop-right-active.xpmtop-right-inactive.xpm
XFCE Crux Black
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
XFCE Crux Blue
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
XFCE Crux Green
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
XFCE Crux Orange
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
XFCE Crux Red
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
XFCE Crux Violet
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
XFCE Crux of A-Ron
gtk-2.0
xfwm4
READMEbottom-active.pngbottom-active.xpmbottom-inactive.pngbottom-inactive.xpmbottom-left-active.pngbottom-left-active.xpmbottom-left-inactive.pngbottom-left-inactive.xpmbottom-right-active.pngbottom-right-active.xpmbottom-right-inactive.pngbottom-right-inactive.xpmclose-active.pngclose-active.xpmclose-inactive.pngclose-inactive.xpmclose-prelight.pngclose-prelight.xpmclose-pressed.pngclose-pressed.xpmhide-active.pnghide-active.xpmhide-inactive.pnghide-inactive.xpmhide-prelight.pnghide-prelight.xpmhide-pressed.pnghide-pressed.xpmleft-active.pngleft-active.xpmleft-inactive.pngleft-inactive.xpmmaximize-active.pngmaximize-active.xpmmaximize-inactive.pngmaximize-inactive.xpmmaximize-prelight.pngmaximize-prelight.xpmmaximize-pressed.pngmaximize-pressed.xpmmaximize-toggled-active.pngmaximize-toggled-active.xpmmaximize-toggled-inactive.pngmaximize-toggled-inactive.xpmmaximize-toggled-prelight.pngmaximize-toggled-prelight.xpmmaximize-toggled-pressed.pngmaximize-toggled-pressed.xpmmenu-active.pngmenu-active.xpmmenu-inactive.pngmenu-inactive.xpmmenu-prelight.pngmenu-prelight.xpmmenu-pressed.pngmenu-pressed.xpmright-active.pngright-active.xpmright-inactive.pngright-inactive.xpmshade-active.pngshade-active.xpmshade-inactive.pngshade-inactive.xpmshade-prelight.pngshade-prelight.xpmshade-pressed.pngshade-pressed.xpmshade-toggled-active.pngshade-toggled-active.xpmshade-toggled-inactive.pngshade-toggled-inactive.xpmshade-toggled-prelight.pngshade-toggled-prelight.xpmshade-toggled-pressed.pngshade-toggled-pressed.xpmstick-active.pngstick-active.xpmstick-inactive.pngstick-inactive.xpmstick-prelight.pngstick-prelight.xpmstick-pressed.pngstick-pressed.xpmstick-toggled-active.pngstick-toggled-active.xpmstick-toggled-inactive.pngstick-toggled-inactive.xpmstick-toggled-prelight.pngstick-toggled-prelight.xpmstick-toggled-pressed.pngstick-toggled-pressed.xpmthemerctitle-1-active.pngtitle-1-active.xpmtitle-1-inactive.pngtitle-1-inactive.xpmtitle-2-active.pngtitle-2-active.xpmtitle-2-inactive.pngtitle-2-inactive.xpmtitle-3-active.pngtitle-3-active.xpmtitle-3-inactive.pngtitle-3-inactive.xpmtitle-4-active.pngtitle-4-active.xpmtitle-4-inactive.pngtitle-4-inactive.xpmtitle-5-active.pngtitle-5-active.xpmtitle-5-inactive.pngtitle-5-inactive.xpmtop-left-active.pngtop-left-active.xpmtop-left-inactive.pngtop-left-inactive.xpmtop-right-active.pngtop-right-active.xpmtop-right-inactive.pngtop-right-inactive.xpm
.vim
.weechat
usr
ODYSSEY
READMEWOPR
universal
.tmux.conf.vimrc
.zsh
.dircolors.histfile.histfileroot.zshrcaliasbindkeyscompletionexportshistfilehistoryinteractivepromptsetopt
tango.vimzsh-syntax-highlight
.gitignoreCOPYING.mdREADME.md
highlighters
README.md
brackets
cursor
main
pattern
root
tests
zsh-syntax-highlighting.plugin.zshzsh-syntax-highlighting.zsh
129
universal/.tmux.conf
Executable file
129
universal/.tmux.conf
Executable file
@ -0,0 +1,129 @@
|
||||
# $Id: screen-keys.conf,v 1.7 2010-07-31 11:39:13 nicm Exp $
|
||||
#
|
||||
# By Nicholas Marriott. Public domain.
|
||||
#
|
||||
# This configuration file binds many of the common GNU screen key bindings to
|
||||
# appropriate tmux key bindings. Note that for some key bindings there is no
|
||||
# tmux analogue and also that this set omits binding some commands available in
|
||||
# tmux but not in screen.
|
||||
#
|
||||
# Note this is only a selection of key bindings and they are in addition to the
|
||||
# normal tmux key bindings. This is intended as an example not as to be used
|
||||
# as-is.
|
||||
|
||||
# Set the prefix to ^A.
|
||||
unbind C-b
|
||||
set -g prefix ^A
|
||||
bind a send-prefix
|
||||
|
||||
# Bind appropriate commands similar to screen.
|
||||
# lockscreen ^X x
|
||||
unbind ^X
|
||||
bind ^X lock-server
|
||||
unbind x
|
||||
bind x lock-server
|
||||
|
||||
# screen ^C c
|
||||
unbind ^C
|
||||
bind ^C new-window
|
||||
bind c new-window
|
||||
|
||||
# detach ^D d
|
||||
unbind ^D
|
||||
bind ^D detach
|
||||
|
||||
# displays *
|
||||
unbind *
|
||||
bind * list-clients
|
||||
|
||||
# next ^@ ^N sp n
|
||||
unbind ^@
|
||||
bind ^@ next-window
|
||||
unbind ^N
|
||||
bind ^N next-window
|
||||
unbind " "
|
||||
bind " " next-window
|
||||
unbind n
|
||||
bind n next-window
|
||||
|
||||
# title A
|
||||
unbind A
|
||||
bind A command-prompt "rename-window %%"
|
||||
|
||||
# other ^A
|
||||
unbind ^A
|
||||
bind ^A last-window
|
||||
|
||||
# prev ^H ^P p ^?
|
||||
unbind ^H
|
||||
bind ^H previous-window
|
||||
unbind ^P
|
||||
bind ^P previous-window
|
||||
unbind p
|
||||
bind p previous-window
|
||||
unbind BSpace
|
||||
bind BSpace previous-window
|
||||
|
||||
# windows ^W w
|
||||
unbind ^W
|
||||
bind ^W list-windows
|
||||
unbind w
|
||||
bind w list-windows
|
||||
|
||||
# quit \
|
||||
unbind '\'
|
||||
bind '\' confirm-before "kill-server"
|
||||
|
||||
# kill K k
|
||||
unbind K
|
||||
bind K confirm-before "kill-window"
|
||||
unbind k
|
||||
bind k confirm-before "kill-window"
|
||||
|
||||
# redisplay ^L l
|
||||
unbind ^L
|
||||
bind ^L refresh-client
|
||||
unbind l
|
||||
bind l refresh-client
|
||||
|
||||
# split -v |
|
||||
unbind -
|
||||
bind - split-window -v
|
||||
unbind =
|
||||
bind = split-window -h
|
||||
|
||||
# :kB: focus up
|
||||
unbind Tab
|
||||
bind Tab select-pane -t:.+
|
||||
unbind BTab
|
||||
bind BTab select-pane -t:.-
|
||||
|
||||
# " windowlist -b
|
||||
unbind '"'
|
||||
bind '"' choose-window
|
||||
|
||||
#reload config
|
||||
unbind r
|
||||
bind r source-file /home/burchettm/.tmux.conf
|
||||
|
||||
# hardstatus line theme
|
||||
#set -g status-fg white
|
||||
#set -g status-bg default
|
||||
#set -g status-justify centre
|
||||
#set -g status-left-length 13
|
||||
#set -g status-left '#[fg=green][ #[fg=black,bright]#h #[fg=green,nobright]][#[default]'
|
||||
#set -g status-right-length 16
|
||||
#set -g status-right '#[fg=green]][ #[fg=black,bright]#(date +"%m/%d %H:%M") #[fg=green,nobright]]#[fg=default]'
|
||||
#setw -g window-status-current-format '#[fg=red,bg=default]( #[fg=white,bright,bg=default]#I:#W#[fg=red,nobright,bg=default] )#[fg=default]'
|
||||
#setw -g window-status-alert-attr bold
|
||||
#setw -g window-status-alert-fg yellow
|
||||
#setw -g window-status-alert-bg default
|
||||
|
||||
set-option -g status-utf8 on
|
||||
set-option -g status-justify centre
|
||||
set-option -g status-bg default
|
||||
set-option -g status-fg colour14
|
||||
set-window-option -g window-status-current-fg colour135
|
||||
set-window-option -g window-status-current-attr underscore
|
||||
set-option -g status-right '#H %I:%M %Y-%m-%d'
|
||||
|
6
universal/.vimrc
Executable file
6
universal/.vimrc
Executable file
@ -0,0 +1,6 @@
|
||||
syntax on
|
||||
set background=dark
|
||||
colors tango
|
||||
set tabstop=8
|
||||
set shiftwidth=8
|
||||
set expandtab
|
555
universal/.zsh/.dircolors
Normal file
555
universal/.zsh/.dircolors
Normal file
@ -0,0 +1,555 @@
|
||||
# LS_COLORS
|
||||
# Maintainer: Magnus Woldrich <m@japh.se>
|
||||
# URL: https://github.com/trapd00r/LS_COLORS
|
||||
# Version: 0.254
|
||||
# Updated: 2013-06-07 08:42:38
|
||||
#
|
||||
# This is a collection of extension:color mappings, suitable to use as your
|
||||
# LS_COLORS environment variable. Most of them use the extended color map,
|
||||
# described in the ECMA-48 document; in other words, you'll need a terminal
|
||||
# with capabilities of displaying 256 colors.
|
||||
#
|
||||
# As of this writing, around 300 different filetypes/extensions is supported.
|
||||
# That's indeed a lot of extensions, but there's a lot more! Therefore I need
|
||||
# your help.
|
||||
#
|
||||
# Fork this project on github, add the extensions you are missing, and send me
|
||||
# a pull request.
|
||||
#
|
||||
# For files that usually ends up next to each other, like html, css and js,
|
||||
# try to pick colors that fit nicely together. Filetypes with multiple
|
||||
# possible extensions, like htm and html, should have the same color.
|
||||
|
||||
|
||||
BLK 38;5;68
|
||||
CAPABILITY 38;5;17
|
||||
CHR 38;5;113;1
|
||||
DIR 38;5;30
|
||||
DOOR 38;5;127
|
||||
EXEC 38;5;166;1
|
||||
FIFO 38;5;126
|
||||
FILE 38;5;253
|
||||
LINK target
|
||||
MULTIHARDLINK 38;5;220;1
|
||||
# "NORMAL don't reset the bold attribute -
|
||||
# https://github.com/trapd00r/LS_COLORS/issues/11
|
||||
#NORMAL 38;5;254
|
||||
ORPHAN 48;5;196;38;5;232;1
|
||||
OTHER_WRITABLE 38;5;220;1
|
||||
SETGID 48;5;234;38;5;100;1
|
||||
SETUID 38;5;137
|
||||
SOCK 38;5;197
|
||||
STICKY 38;5;86;48;5;234
|
||||
STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||
|
||||
*LS_COLORS 48;5;89;38;5;197;1;3;4;7 # :-)
|
||||
|
||||
# code, text, documents
|
||||
.BAT 38;5;108
|
||||
.PL 38;5;160
|
||||
.ahk 38;5;29;1
|
||||
.asc 38;5;192;3
|
||||
.asm 38;5;240;1
|
||||
.awk 38;5;148;1
|
||||
.bash 38;5;173
|
||||
.bat 38;5;108
|
||||
.c 38;5;110
|
||||
.cc 38;5;24;1
|
||||
.ii 38;5;24;1
|
||||
.cfg 1
|
||||
.conf 1
|
||||
.rc 1
|
||||
.cl 38;5;204;1
|
||||
.coffee 38;5;94;1
|
||||
.C 38;5;24;1
|
||||
.cp 38;5;24;1
|
||||
.cpp 38;5;24;1
|
||||
.cxx 38;5;24;1
|
||||
.c++ 38;5;24;1
|
||||
.ii 38;5;24;1
|
||||
.cs 38;5;74;1
|
||||
.css 38;5;91
|
||||
.csv 38;5;78
|
||||
.ctp 38;5;95
|
||||
.diff 48;5;197;38;5;232
|
||||
.enc 38;5;192;3
|
||||
.eps 38;5;192
|
||||
.etx 38;5;172
|
||||
.ex 38;5;148;1
|
||||
.example 38;5;225;1
|
||||
.git 38;5;197
|
||||
.gitignore 38;5;240
|
||||
.gitattributes 38;5;240
|
||||
.go 38;5;36;1
|
||||
.h 38;5;81
|
||||
.H 38;5;81
|
||||
.hpp 38;5;81
|
||||
.hxx 38;5;81
|
||||
.h++ 38;5;81
|
||||
.tcc 38;5;81
|
||||
.f 38;5;81
|
||||
.for 38;5;81
|
||||
.ftn 38;5;81
|
||||
.s 38;5;81
|
||||
.S 38;5;81
|
||||
.sx 38;5;81
|
||||
.gpg 38;5;192;3
|
||||
# interface file in GHC - https://github.com/trapd00r/LS_COLORS/pull/9
|
||||
.hi 38;5;240
|
||||
.hs 38;5;155;1
|
||||
.htm 38;5;125;1
|
||||
.html 38;5;125;1
|
||||
.info 38;5;101
|
||||
.ini 38;5;122
|
||||
.java 38;5;142;1
|
||||
.jhtm 38;5;125;1
|
||||
.js 38;5;42
|
||||
.jsm 38;5;42
|
||||
.jsm 38;5;42
|
||||
.json 38;5;199
|
||||
.jsp 38;5;45
|
||||
.lisp 38;5;204;1
|
||||
.log 38;5;190
|
||||
.lua 38;5;34;1
|
||||
.m 38;5;130;3
|
||||
.mht 38;5;129
|
||||
.mm 38;5;130;3
|
||||
.M 38;5;130;3
|
||||
.map 38;5;58;3
|
||||
.markdown 38;5;184
|
||||
.md 38;5;184
|
||||
.mf 38;5;220;3
|
||||
.mfasl 38;5;73
|
||||
.mi 38;5;124
|
||||
.mkd 38;5;184
|
||||
.mtx 38;5;36;3
|
||||
.nfo 38;5;220
|
||||
.o 38;5;240
|
||||
.pacnew 38;5;33
|
||||
.patch 48;5;197;38;5;232;1
|
||||
.pc 38;5;100
|
||||
.pfa 38;5;43
|
||||
.pgp 38;5;192;3
|
||||
.pgsql 38;5;222
|
||||
.php 38;5;93
|
||||
.pl 38;5;214
|
||||
.plt 38;5;204;1
|
||||
.pm 38;5;197;1
|
||||
.pod 38;5;172;1
|
||||
.py 38;5;41
|
||||
# compiled python code - https://github.com/trapd00r/LS_COLORS/pull/10
|
||||
.pyc 38;5;240
|
||||
.rb 38;5;192
|
||||
.rdf 38;5;144
|
||||
.rst 38;5;67
|
||||
.ru 38;5;142
|
||||
.scm 38;5;204;1
|
||||
.sed 38;5;130;1
|
||||
.sfv 38;5;197
|
||||
.sh 38;5;113
|
||||
.sig 38;5;192;3
|
||||
.signature 38;5;206
|
||||
.sql 38;5;222
|
||||
.srt 38;5;116
|
||||
.sty 38;5;58
|
||||
.sug 38;5;44
|
||||
.t 38;5;28;1
|
||||
.tcl 38;5;64;1
|
||||
.tdy 38;5;214
|
||||
.tex 38;5;172
|
||||
.textile 38;5;106
|
||||
.tfm 38;5;64
|
||||
.tfnt 38;5;140
|
||||
.theme 38;5;109
|
||||
.txt 38;5;192
|
||||
.urlview 38;5;85
|
||||
.vim 1
|
||||
.viminfo 38;5;240;1
|
||||
.xml 38;5;199
|
||||
.yml 38;5;208
|
||||
.zsh 38;5;173
|
||||
# Build stuff
|
||||
*README 38;5;220;1
|
||||
*Makefile 38;5;196
|
||||
*MANIFEST 38;5;243
|
||||
*pm_to_blib 38;5;240
|
||||
.1 38;5;196;1
|
||||
.3 38;5;196;1
|
||||
.7 38;5;196;1
|
||||
.1p 38;5;160
|
||||
.3p 38;5;160
|
||||
.am 38;5;242
|
||||
.in 38;5;242
|
||||
.old 38;5;242
|
||||
.out 38;5;46;1
|
||||
# pictures, icons
|
||||
.bmp 38;5;62
|
||||
.cdr 38;5;59
|
||||
.gif 38;5;72
|
||||
.ico 38;5;73
|
||||
.jpeg 38;5;66
|
||||
.jpg 38;5;66
|
||||
.JPG 38;5;66
|
||||
.png 38;5;68;1
|
||||
.svg 38;5;24;1
|
||||
.xpm 38;5;36
|
||||
# Emulator roms, emulator savegames
|
||||
.32x 38;5;137
|
||||
.A64 38;5;82
|
||||
.a00 38;5;11
|
||||
.a52 38;5;112
|
||||
.a64 38;5;82
|
||||
.a78 38;5;112
|
||||
.adf 38;5;35
|
||||
.atr 38;5;213
|
||||
.cdi 38;5;124
|
||||
.fm2 38;5;35
|
||||
.gb 38;5;203
|
||||
.gba 38;5;205
|
||||
.gbc 38;5;204
|
||||
.gel 38;5;83
|
||||
.gg 38;5;138
|
||||
.ggl 38;5;83
|
||||
.j64 38;5;102
|
||||
.nds 38;5;193
|
||||
.nes 38;5;160
|
||||
.rom 38;5;59;1
|
||||
.sav 38;5;220
|
||||
.sms 38;5;33
|
||||
.st 38;5;208;1
|
||||
# images
|
||||
.iso 38;5;124
|
||||
.nrg 38;5;124
|
||||
.qcow 38;5;141
|
||||
# video
|
||||
.VOB 38;5;137
|
||||
.IFO 38;5;240
|
||||
.BUP 38;5;241
|
||||
.MOV 38;5;42
|
||||
.3gp 38;5;134
|
||||
.3g2 38;5;133
|
||||
.asf 38;5;25
|
||||
.avi 38;5;114
|
||||
.divx 38;5;112
|
||||
.f4v 38;5;125
|
||||
.flv 38;5;131
|
||||
.m2v 38;5;166
|
||||
.mkv 38;5;202
|
||||
.mov 38;5;42
|
||||
.mp4 38;5;124
|
||||
.mpg 38;5;38
|
||||
.mpeg 38;5;38
|
||||
.ogm 38;5;97
|
||||
.ogv 38;5;94
|
||||
.rmvb 38;5;112
|
||||
.sample 38;5;130;1
|
||||
.ts 38;5;39
|
||||
.vob 38;5;137
|
||||
.webm 38;5;109
|
||||
.wmv 38;5;113
|
||||
# music, audio
|
||||
.3ga 38;5;95
|
||||
.S3M 38;5;71;1
|
||||
.aac 38;5;137
|
||||
.ape 38;5;166;1
|
||||
.cue 38;5;112
|
||||
.dat 38;5;165
|
||||
.dts 38;5;100;1
|
||||
.fcm 38;5;41
|
||||
.flac 38;5;166;1
|
||||
.m3u 38;5;172
|
||||
.m3u8 38;5;172
|
||||
.m4 38;5;196;3
|
||||
.m4a 38;5;137;1
|
||||
.mid 38;5;102
|
||||
.midi 38;5;102
|
||||
.mod 38;5;72
|
||||
.mp3 38;5;191
|
||||
.oga 38;5;95
|
||||
.ogg 38;5;96
|
||||
.s3m 38;5;71;1
|
||||
.sid 38;5;69;1
|
||||
.spl 38;5;173
|
||||
.wv 38;5;149
|
||||
.wvc 38;5;149
|
||||
# fonts
|
||||
.afm 38;5;58
|
||||
.pfb 38;5;58
|
||||
.pfm 38;5;58
|
||||
.ttf 38;5;66
|
||||
.pcf 38;5;65
|
||||
.psf 38;5;64
|
||||
# backups, undo files, tempfiles
|
||||
.bak 38;5;41;1
|
||||
.bin 38;5;249
|
||||
.pid 38;5;160
|
||||
.state 38;5;124
|
||||
.swo 38;5;236
|
||||
.swp 38;5;241
|
||||
.tmp 38;5;244
|
||||
.un~ 38;5;240
|
||||
.zcompdump 38;5;240
|
||||
.zwc 38;5;240
|
||||
# databases
|
||||
.db 38;5;60
|
||||
.dump 38;5;119
|
||||
.sqlite 38;5;60
|
||||
.typelib 38;5;60
|
||||
.localstorage 38;5;60
|
||||
# (compressed) archives
|
||||
.7z 38;5;40
|
||||
.a 38;5;46
|
||||
.apk 38;5;172;3
|
||||
.arj 38;5;41
|
||||
.bsp 38;5;239;1
|
||||
.bz2 38;5;44
|
||||
.cab 38;5;215
|
||||
.deb 38;5;215
|
||||
.gz 38;5;34
|
||||
.ipk 38;5;117
|
||||
.jad 38;5;50
|
||||
.jar 38;5;51
|
||||
.nth 38;5;40
|
||||
.sis 38;5;39
|
||||
.part 38;5;239;1
|
||||
.r00 38;5;239
|
||||
.r01 38;5;239
|
||||
.r02 38;5;239
|
||||
.r03 38;5;239
|
||||
.r04 38;5;239
|
||||
.r05 38;5;239
|
||||
.r06 38;5;239
|
||||
.r07 38;5;239
|
||||
.r08 38;5;239
|
||||
.r09 38;5;239
|
||||
.r10 38;5;239
|
||||
.r100 38;5;239
|
||||
.r101 38;5;239
|
||||
.r102 38;5;239
|
||||
.r103 38;5;239
|
||||
.r104 38;5;239
|
||||
.r105 38;5;239
|
||||
.r106 38;5;239
|
||||
.r107 38;5;239
|
||||
.r108 38;5;239
|
||||
.r109 38;5;239
|
||||
.r11 38;5;239
|
||||
.r110 38;5;239
|
||||
.r111 38;5;239
|
||||
.r112 38;5;239
|
||||
.r113 38;5;239
|
||||
.r114 38;5;239
|
||||
.r115 38;5;239
|
||||
.r116 38;5;239
|
||||
.r12 38;5;239
|
||||
.r13 38;5;239
|
||||
.r14 38;5;239
|
||||
.r15 38;5;239
|
||||
.r16 38;5;239
|
||||
.r17 38;5;239
|
||||
.r18 38;5;239
|
||||
.r19 38;5;239
|
||||
.r20 38;5;239
|
||||
.r21 38;5;239
|
||||
.r22 38;5;239
|
||||
.r25 38;5;239
|
||||
.r26 38;5;239
|
||||
.r27 38;5;239
|
||||
.r28 38;5;239
|
||||
.r29 38;5;239
|
||||
.r30 38;5;239
|
||||
.r31 38;5;239
|
||||
.r32 38;5;239
|
||||
.r33 38;5;239
|
||||
.r34 38;5;239
|
||||
.r35 38;5;239
|
||||
.r36 38;5;239
|
||||
.r37 38;5;239
|
||||
.r38 38;5;239
|
||||
.r39 38;5;239
|
||||
.r40 38;5;239
|
||||
.r41 38;5;239
|
||||
.r42 38;5;239
|
||||
.r43 38;5;239
|
||||
.r44 38;5;239
|
||||
.r45 38;5;239
|
||||
.r46 38;5;239
|
||||
.r47 38;5;239
|
||||
.r48 38;5;239
|
||||
.r49 38;5;239
|
||||
.r50 38;5;239
|
||||
.r51 38;5;239
|
||||
.r52 38;5;239
|
||||
.r53 38;5;239
|
||||
.r54 38;5;239
|
||||
.r55 38;5;239
|
||||
.r56 38;5;239
|
||||
.r57 38;5;239
|
||||
.r58 38;5;239
|
||||
.r59 38;5;239
|
||||
.r60 38;5;239
|
||||
.r61 38;5;239
|
||||
.r62 38;5;239
|
||||
.r63 38;5;239
|
||||
.r64 38;5;239
|
||||
.r65 38;5;239
|
||||
.r66 38;5;239
|
||||
.r67 38;5;239
|
||||
.r68 38;5;239
|
||||
.r69 38;5;239
|
||||
.r69 38;5;239
|
||||
.r70 38;5;239
|
||||
.r71 38;5;239
|
||||
.r72 38;5;239
|
||||
.r73 38;5;239
|
||||
.r74 38;5;239
|
||||
.r75 38;5;239
|
||||
.r76 38;5;239
|
||||
.r77 38;5;239
|
||||
.r78 38;5;239
|
||||
.r79 38;5;239
|
||||
.r80 38;5;239
|
||||
.r81 38;5;239
|
||||
.r82 38;5;239
|
||||
.r83 38;5;239
|
||||
.r84 38;5;239
|
||||
.r85 38;5;239
|
||||
.r86 38;5;239
|
||||
.r87 38;5;239
|
||||
.r88 38;5;239
|
||||
.r89 38;5;239
|
||||
.r90 38;5;239
|
||||
.r91 38;5;239
|
||||
.r92 38;5;239
|
||||
.r93 38;5;239
|
||||
.r94 38;5;239
|
||||
.r95 38;5;239
|
||||
.r96 38;5;239
|
||||
.r97 38;5;239
|
||||
.r98 38;5;239
|
||||
.r99 38;5;239
|
||||
.rar 38;5;106;1
|
||||
.tar 38;5;118
|
||||
.tgz 38;5;35;1
|
||||
.vpk 38;5;239;1
|
||||
.vdf 38;5;215
|
||||
.xz 38;5;118
|
||||
.zip 38;5;41
|
||||
# really compressed archives, but mostly used for documents, comics (and
|
||||
# documentation on MS Windows)
|
||||
.pdf 38;5;203
|
||||
.djvu 38;5;141
|
||||
.cbr 38;5;140
|
||||
.cbz 38;5;140
|
||||
.chm 38;5;144
|
||||
# open document formats
|
||||
.odt 38;5;111
|
||||
.ods 38;5;112
|
||||
.odp 38;5;166
|
||||
.odb 38;5;161
|
||||
# ms office file formats
|
||||
.accdb 38;5;60
|
||||
.accde 38;5;60
|
||||
.accdt 38;5;60
|
||||
.accdr 38;5;60
|
||||
.docx 38;5;111
|
||||
.docm 38;5;111;4
|
||||
.xla 38;5;76
|
||||
.xlsx 38;5;112
|
||||
.xlsxm 38;5;112;4
|
||||
.xltx 38;5;73
|
||||
.xltm 38;5;73;4
|
||||
.ppt 38;5;166
|
||||
.pot 38;5;166
|
||||
.pps 38;5;166
|
||||
# /etc/hosts.{deny,allow}
|
||||
.allow 38;5;112
|
||||
.deny 38;5;196
|
||||
# other
|
||||
.SKIP 38;5;244
|
||||
.def 38;5;136
|
||||
.directory 38;5;83
|
||||
.err 38;5;160;1
|
||||
.error 38;5;160;1
|
||||
.pi 38;5;126
|
||||
.properties 38;5;197;1
|
||||
.torrent 38;5;58
|
||||
.gp3 38;5;114
|
||||
.gp4 38;5;115
|
||||
.tg 38;5;99
|
||||
.gbr 38;5;2
|
||||
.ger 38;5;2
|
||||
.pcb 38;5;28
|
||||
.sch 38;5;34
|
||||
.cnc 38;5;37
|
||||
.xln 38;5;37
|
||||
# tcpdump
|
||||
.pcap 38;5;29
|
||||
.cap 38;5;29
|
||||
.dmp 38;5;29
|
||||
# systemd units
|
||||
# http://www.freedesktop.org/software/systemd/man/systemd.unit.html
|
||||
.service 38;5;81
|
||||
*@.service 38;5;45
|
||||
.socket 38;5;75
|
||||
.device 38;5;24
|
||||
.mount 38;5;115
|
||||
.automount 38;5;114
|
||||
.swap 38;5;113
|
||||
.target 38;5;73
|
||||
.path 38;5;116
|
||||
.timer 38;5;111
|
||||
.snapshot 38;5;139
|
||||
|
||||
TERM Eterm
|
||||
TERM ansi
|
||||
TERM color-xterm
|
||||
TERM con132x25
|
||||
TERM con132x30
|
||||
TERM con132x43
|
||||
TERM con132x60
|
||||
TERM con80x25
|
||||
TERM con80x28
|
||||
TERM con80x30
|
||||
TERM con80x43
|
||||
TERM con80x50
|
||||
TERM con80x60
|
||||
TERM cons25
|
||||
TERM console
|
||||
TERM cygwin
|
||||
TERM dtterm
|
||||
TERM eterm-color
|
||||
TERM gnome
|
||||
TERM gnome-256color
|
||||
TERM jfbterm
|
||||
TERM konsole
|
||||
TERM kterm
|
||||
TERM linux
|
||||
TERM linux-c
|
||||
TERM mach-color
|
||||
TERM mlterm
|
||||
TERM putty
|
||||
TERM rxvt
|
||||
TERM rxvt-256color
|
||||
TERM rxvt-cygwin
|
||||
TERM rxvt-cygwin-native
|
||||
TERM rxvt-unicode
|
||||
TERM rxvt-unicode-256color
|
||||
TERM rxvt-unicode256
|
||||
TERM screen
|
||||
TERM screen-256color
|
||||
TERM screen-256color-bce
|
||||
TERM screen-bce
|
||||
TERM screen-w
|
||||
TERM screen.rxvt
|
||||
TERM screen.linux
|
||||
TERM terminator
|
||||
TERM vt100
|
||||
TERM xterm
|
||||
TERM xterm-16color
|
||||
TERM xterm-256color
|
||||
TERM xterm-88color
|
||||
TERM xterm-color
|
||||
TERM xterm-debian
|
||||
|
||||
# vim: ft=dircolors:fdm=marker:et:sw=2:
|
0
universal/.zsh/.histfile
Normal file
0
universal/.zsh/.histfile
Normal file
0
universal/.zsh/.histfileroot
Normal file
0
universal/.zsh/.histfileroot
Normal file
21
universal/.zsh/.zshrc
Executable file
21
universal/.zsh/.zshrc
Executable file
@ -0,0 +1,21 @@
|
||||
if [ "`uname -a | grep Darwin`" ]
|
||||
then
|
||||
export ZSH=Users
|
||||
else
|
||||
export ZSH=home
|
||||
fi
|
||||
|
||||
source /$ZSH/.zsh/history
|
||||
source /$ZSH/.zsh/alias
|
||||
source /$ZSH/.zsh/exports
|
||||
source /$ZSH/.zsh/bindkeys
|
||||
source /$ZSH/.zsh/completion
|
||||
source /$ZSH/.zsh/setopt
|
||||
source /$ZSH/.zsh/zsh-syntax-highlight/zsh-syntax-highlighting.zsh
|
||||
source /$ZSH/.zsh/interactive
|
||||
source /$ZSH/.zsh/prompt
|
||||
|
||||
if [[ $(whoami) =~ ^(matthew|contegix)$ ]]
|
||||
then
|
||||
source /$ZSH/.zsh/contegix
|
||||
fi
|
33
universal/.zsh/alias
Executable file
33
universal/.zsh/alias
Executable file
@ -0,0 +1,33 @@
|
||||
alias ls='ls --color=auto'
|
||||
alias cpdir='cp -rv'
|
||||
alias vi='vim'
|
||||
alias unamedate='echo "Issuing uname -a:" && uname -a && echo "Current Date and Time:" && date'
|
||||
alias ..="cd .."
|
||||
alias hosts='sudo vim /etc/hosts'
|
||||
alias emacs='emacs -nw'
|
||||
|
||||
if [ "`which ls++ | grep -v 'not found' `" ]
|
||||
then
|
||||
alias ll="`which ls++` -a"
|
||||
else
|
||||
alias ll='ls -alh'
|
||||
fi
|
||||
|
||||
if [ -f '/etc/arch-release' ]
|
||||
then
|
||||
alias upgrade='yaourt --aur -Syyu'
|
||||
alias pacman='sudo pacman'
|
||||
fi
|
||||
|
||||
if [ -f '/etc/debian-release' ]
|
||||
then
|
||||
alias upgrade='sudo apt-get update;sudo apt-get upgrade'
|
||||
alias apt-get='sudo apt-get'
|
||||
fi
|
||||
|
||||
if [ -f '/etc/redhat-release' ]
|
||||
then
|
||||
alias upgrade='sudo yum update'
|
||||
alias yum='sudo yum'
|
||||
fi
|
||||
|
23
universal/.zsh/bindkeys
Executable file
23
universal/.zsh/bindkeys
Executable file
@ -0,0 +1,23 @@
|
||||
bindkey "\e[1~" beginning-of-line # Home
|
||||
bindkey "\e[4~" end-of-line # End
|
||||
bindkey "\e[5~" beginning-of-history # PageUp
|
||||
bindkey "\e[6~" end-of-history # PageDown
|
||||
bindkey "\e[2~" quoted-insert # Ins
|
||||
bindkey "\e[3~" delete-char # Del
|
||||
bindkey "\e[5C" forward-word
|
||||
bindkey "\eOc" emacs-forward-word
|
||||
bindkey "\e[5D" backward-word
|
||||
bindkey "\eOd" emacs-backward-word
|
||||
bindkey "\e\e[C" forward-word
|
||||
bindkey "\e\e[D" backward-word
|
||||
bindkey "\e[Z" reverse-menu-complete # Shift+Tab
|
||||
# for rxvt
|
||||
bindkey "\e[7~" beginning-of-line # Home
|
||||
bindkey "\e[8~" end-of-line # End
|
||||
# for non RH/Debian xterm, can't hurt for RH/Debian xterm
|
||||
bindkey "\eOH" beginning-of-line
|
||||
bindkey "\eOF" end-of-line
|
||||
# for freebsd console
|
||||
bindkey "\e[H" beginning-of-line
|
||||
bindkey "\e[F" end-of-line
|
||||
bindkey "^R" history-incremental-search-backward
|
0
universal/.zsh/completion
Executable file
0
universal/.zsh/completion
Executable file
66
universal/.zsh/exports
Executable file
66
universal/.zsh/exports
Executable file
@ -0,0 +1,66 @@
|
||||
#Default Editor is VIM
|
||||
export EDITOR="vim"
|
||||
|
||||
#Set GIT Directory Variable
|
||||
export GITDIR="/home/burchettm/.git/computers"
|
||||
export GIT="/home/burchettm/.git"
|
||||
|
||||
#Set ScreenShots Directory Variable
|
||||
export SCREENSHOTS="/home/burchettm/Desktop/Screenshots"
|
||||
|
||||
#Enable LIBETC (dotfiles mover)
|
||||
#export LD_PRELOAD=libetc.so
|
||||
|
||||
#Default Browser is Opera, unless in TTY then it's links
|
||||
# Browser
|
||||
if [ -n "$DISPLAY" ]; then
|
||||
export BROWSER=opera
|
||||
else
|
||||
export BROWSER=links
|
||||
fi
|
||||
|
||||
#Set 256-color terminal
|
||||
|
||||
#if [ -n "$DISPLAY" ];
|
||||
# then export TERM="xterm-256color"
|
||||
# else export TERM="linux"
|
||||
#fi
|
||||
|
||||
#export language
|
||||
export LANG="en_US.UTF-8"
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
|
||||
|
||||
# GTK2
|
||||
|
||||
export GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:$HOME/.gtkrc-2.0"
|
||||
|
||||
if [ -d "$HOME/BTSync/DropSync/Scripts" ]
|
||||
then
|
||||
export PATH="$PATH:$HOME/BTSync/DropSync/Scripts"
|
||||
fi
|
||||
|
||||
if [ `whoami` = "matthew" ]
|
||||
then
|
||||
if [ "`uname -a | grep Darwin`" ]
|
||||
then
|
||||
PATH="/usr/local/bin:/Users/matthew/.nsak/common/bin:/usr/local/opt/coreutils/libexec/gnubin:/Users/matthew/BTSync/DropSync/Scripts:/Users/matthew/Scripts:$PATH"
|
||||
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
|
||||
else
|
||||
if [ "`uname -a | grep Linux`" ]
|
||||
then
|
||||
PATH="/usr/local/bin:/home/matthew/.nsak/common/bin:/home/matthew/ownCloud/computer/Scripts:/home/matthew/Scripts:$PATH"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
test -e $HOME/.zsh/.dircolors && \
|
||||
eval `dircolors -b $HOME/.zsh/.dircolors`
|
||||
|
||||
|
||||
if [ "`pgrep X`" ]
|
||||
then
|
||||
export DISPLAY=:0
|
||||
else
|
||||
export DISPLAY=1
|
||||
fi
|
14
universal/.zsh/histfile
Executable file
14
universal/.zsh/histfile
Executable file
@ -0,0 +1,14 @@
|
||||
cd ..]
|
||||
ls
|
||||
cd /home
|
||||
ls
|
||||
su
|
||||
ls
|
||||
rm -rf Winb7ows-2014-07-18-20-img Qemu/ SingleMomsClub.avi clonezilla-sysresccd-amd64-3.1.0.iso NOVAb7ows
|
||||
sudo rm -rf Winb7ows-2014-07-18-20-img Qemu/ SingleMomsClub.avi clonezilla-sysresccd-amd64-3.1.0.iso NOVAb7ows
|
||||
df -h
|
||||
su
|
||||
df -h
|
||||
df -h
|
||||
df -h
|
||||
glances
|
10
universal/.zsh/history
Executable file
10
universal/.zsh/history
Executable file
@ -0,0 +1,10 @@
|
||||
if [ `whoami` != "root" ]
|
||||
then
|
||||
HISTFILE=/$HOME/.zsh_histfile
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
else
|
||||
HISTFILE=/$HOME/.zsh_histfile
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
fi
|
11
universal/.zsh/interactive
Executable file
11
universal/.zsh/interactive
Executable file
@ -0,0 +1,11 @@
|
||||
chpwd() {
|
||||
[[ -t 1 ]] || return
|
||||
case $TERM in
|
||||
sun-cmd) print -Pn "\e]l%# - %~\e\\"
|
||||
;;
|
||||
*xterm*|rxvt|(dt|k|E)term) print -Pn "\e]2;%# - %~\a"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
cd .
|
||||
|
20
universal/.zsh/prompt
Executable file
20
universal/.zsh/prompt
Executable file
@ -0,0 +1,20 @@
|
||||
if [ `whoami` = "root" ]
|
||||
then
|
||||
PROMPT="[%T]%B%{$fg[red]%}[%n@%M]%b%{$fg[green]%}[%~]%#%{$reset_color%} "
|
||||
fi
|
||||
|
||||
if [ `whoami` = "matthew" ]
|
||||
then
|
||||
PROMPT="[%T]%B%{$fg[green]%}[%n@%m]%b%{$fg[green]%}[%~]%#%{$reset_color%} "
|
||||
fi
|
||||
|
||||
if [[ "$(whoami)" =~ ^(burchettm)$ ]]
|
||||
then
|
||||
PROMPT="[%T]%B%{$fg[cyan]%}[%n@%m]%b%{$fg[cyan]%}[%~]%#%{$reset_color%} "
|
||||
fi
|
||||
|
||||
if [[ "$(whoami)" =~ ^(minecraft|michaela)$ ]]
|
||||
then
|
||||
PROMPT="[%T]%B%{$fg[magenta]%}[%n@%m]%b%{$fg[magenta]%}[%~]%#%{$reset_color%} "
|
||||
fi
|
||||
|
8
universal/.zsh/setopt
Executable file
8
universal/.zsh/setopt
Executable file
@ -0,0 +1,8 @@
|
||||
# Created by newuser for 4.3.12
|
||||
setopt INC_APPEND_HISTORY
|
||||
autoload -U compinit promptinit
|
||||
autoload -U colors && colors
|
||||
compinit
|
||||
promptinit
|
||||
|
||||
PROMPT="[%T][%B%{$fg[cyan]%}%n@%M]%b%{$fg[cyan]%}[%~]%#%{$reset_color%} "
|
1
universal/.zsh/zsh-syntax-highlight/.gitignore
vendored
Executable file
1
universal/.zsh/zsh-syntax-highlight/.gitignore
vendored
Executable file
@ -0,0 +1 @@
|
||||
*.zwc*
|
23
universal/.zsh/zsh-syntax-highlight/COPYING.md
Executable file
23
universal/.zsh/zsh-syntax-highlight/COPYING.md
Executable file
@ -0,0 +1,23 @@
|
||||
Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
* Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
may be used to endorse or promote products derived from this software without specific prior
|
||||
written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
52
universal/.zsh/zsh-syntax-highlight/README.md
Executable file
52
universal/.zsh/zsh-syntax-highlight/README.md
Executable file
@ -0,0 +1,52 @@
|
||||
zsh-syntax-highlighting
|
||||
=======================
|
||||
|
||||
**[Fish shell](http://www.fishshell.com) like syntax highlighting for [Zsh](http://www.zsh.org).**
|
||||
|
||||
*Requirements: zsh 4.3.9+.*
|
||||
|
||||
|
||||
How to install
|
||||
--------------
|
||||
|
||||
### Using packages
|
||||
|
||||
* Arch Linux: [AUR/zsh-syntax-highlighting](https://aur.archlinux.org/packages.php?ID=54171) / [AUR/zsh-syntax-highlighting-git](https://aur.archlinux.org/packages.php?ID=50867)
|
||||
* Gentoo: [mv overlay](http://gpo.zugaina.org/app-shells/zsh-syntax-highlighting)
|
||||
|
||||
### In your ~/.zshrc
|
||||
|
||||
* Download the script or clone this repository:
|
||||
|
||||
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||
|
||||
* Source the script **at the end** of `~/.zshrc`:
|
||||
|
||||
source /path/to/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
||||
* Source `~/.zshrc` to take changes into account:
|
||||
|
||||
source ~/.zshrc
|
||||
|
||||
|
||||
### With oh-my-zsh
|
||||
|
||||
* Download the script or clone this repository in [oh-my-zsh](http://github.com/robbyrussell/oh-my-zsh) plugins directory:
|
||||
|
||||
cd ~/.oh-my-zsh/custom/plugins
|
||||
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||
|
||||
* Activate the plugin in `~/.zshrc` (in **last** position):
|
||||
|
||||
plugins=( [plugins...] zsh-syntax-highlighting)
|
||||
|
||||
* Source `~/.zshrc` to take changes into account:
|
||||
|
||||
source ~/.zshrc
|
||||
|
||||
|
||||
How to tweak
|
||||
------------
|
||||
|
||||
Syntax highlighting is done by pluggable highlighter scripts, see the [highlighters directory](zsh-syntax-highlighting/tree/master/highlighters)
|
||||
for documentation and configuration settings.
|
49
universal/.zsh/zsh-syntax-highlight/highlighters/README.md
Executable file
49
universal/.zsh/zsh-syntax-highlight/highlighters/README.md
Executable file
@ -0,0 +1,49 @@
|
||||
zsh-syntax-highlighting / highlighters
|
||||
======================================
|
||||
|
||||
Syntax highlighting is done by pluggable highlighters:
|
||||
|
||||
* [***main***](highlighters/main) - the base highlighter, and the only one active by default.
|
||||
* [***brackets***](highlighters/brackets) - matches brackets and parenthesis.
|
||||
* [***pattern***](highlighters/pattern) - matches user-defined patterns.
|
||||
* [***cursor***](highlighters/cursor) - matches the cursor position.
|
||||
* [***root***](highlighters/root) - triggered if the current user is root.
|
||||
|
||||
|
||||
How to activate highlighters
|
||||
----------------------------
|
||||
|
||||
To activate an highlighter, add it to the `ZSH_HIGHLIGHT_HIGHLIGHTERS` array in `~/.zshrc`, for example:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor)
|
||||
|
||||
|
||||
How to tweak highlighters
|
||||
-------------------------
|
||||
|
||||
Highlighters look up styles from the `ZSH_HIGHLIGHT_STYLES` array. Navigate into each highlighter directory to see what styles it defines and how to configure it.
|
||||
|
||||
|
||||
How to implement a new highlighter
|
||||
----------------------------------
|
||||
|
||||
To create your own ***myhighlighter*** highlighter:
|
||||
|
||||
* Create your script at **highlighters/*myhighlighter*/*myhighlighter*-highlighter.zsh**.
|
||||
* Implement the `_zsh_highlight_myhighlighter_highlighter_predicate` function. This function must return 0 when the highlighter needs to be called, for example:
|
||||
|
||||
_zsh_highlight_myhighlighter_highlighter_predicate() {
|
||||
# Call this highlighter in SVN repositories
|
||||
[[ -d .svn ]]
|
||||
}
|
||||
|
||||
* Implement the `_zsh_highlight_myhighlighter_highlighter` function. This function does the actual syntax highlighting, by modifying `region_highlight`, for example:
|
||||
|
||||
_zsh_highlight_myhighlighter_highlighter() {
|
||||
# Colorize the whole buffer with blue background
|
||||
region_highlight+=(0 $#BUFFER bg=blue)
|
||||
}
|
||||
|
||||
* Activate your highlighter in `~/.zshrc`:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS+=(myhighlighter)
|
30
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/README.md
Executable file
30
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/README.md
Executable file
@ -0,0 +1,30 @@
|
||||
zsh-syntax-highlighting / highlighters / brackets
|
||||
=================================================
|
||||
|
||||
This is the ***brackets*** highlighter, that highlights brackets, parenthesis and matches them.
|
||||
|
||||
|
||||
How to activate it
|
||||
------------------
|
||||
To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=( [...] brackets)
|
||||
|
||||
|
||||
How to tweak it
|
||||
---------------
|
||||
This highlighter defines the following styles:
|
||||
|
||||
* `bracket-error` - unmatched brackets
|
||||
* `bracket-level-N` - brackets with nest level N
|
||||
* `cursor-matchingbracket` - the matching bracket, if cursor is on a bracket
|
||||
|
||||
To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`, for example in `~/.zshrc`:
|
||||
|
||||
# To define styles for nested brackets up to level 4
|
||||
ZSH_HIGHLIGHT_STYLES[bracket-level-1]='fg=blue,bold'
|
||||
ZSH_HIGHLIGHT_STYLES[bracket-level-2]='fg=red,bold'
|
||||
ZSH_HIGHLIGHT_STYLES[bracket-level-3]='fg=yellow,bold'
|
||||
ZSH_HIGHLIGHT_STYLES[bracket-level-4]='fg=magenta,bold'
|
||||
|
||||
The syntax for declaring styles is [documented here](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135).
|
110
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/brackets-highlighter.zsh
Executable file
110
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/brackets-highlighter.zsh
Executable file
@ -0,0 +1,110 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# Define default styles.
|
||||
: ${ZSH_HIGHLIGHT_STYLES[bracket-error]:=fg=red,bold}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[bracket-level-1]:=fg=blue,bold}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[bracket-level-2]:=fg=green,bold}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[bracket-level-3]:=fg=magenta,bold}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[bracket-level-4]:=fg=yellow,bold}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[bracket-level-5]:=fg=cyan,bold}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]:=standout}
|
||||
|
||||
# Whether the brackets highlighter should be called or not.
|
||||
_zsh_highlight_brackets_highlighter_predicate()
|
||||
{
|
||||
_zsh_highlight_cursor_moved || _zsh_highlight_buffer_modified
|
||||
}
|
||||
|
||||
# Brackets highlighting function.
|
||||
_zsh_highlight_brackets_highlighter()
|
||||
{
|
||||
local level=0 pos
|
||||
local -A levelpos lastoflevel matching typepos
|
||||
|
||||
# Find all brackets and remember which one is matching
|
||||
for (( pos = 0; $pos < ${#BUFFER}; pos++ )) ; do
|
||||
local char="$BUFFER[pos+1]"
|
||||
case $char in
|
||||
["([{"])
|
||||
levelpos[$pos]=$((++level))
|
||||
lastoflevel[$level]=$pos
|
||||
_zsh_highlight_brackets_highlighter_brackettype "$char"
|
||||
;;
|
||||
[")]}"])
|
||||
matching[$lastoflevel[$level]]=$pos
|
||||
matching[$pos]=$lastoflevel[$level]
|
||||
levelpos[$pos]=$((level--))
|
||||
_zsh_highlight_brackets_highlighter_brackettype "$char"
|
||||
;;
|
||||
['"'\'])
|
||||
# Skip everything inside quotes
|
||||
local quotetype=$char
|
||||
while (( $pos < ${#BUFFER} )) ; do
|
||||
(( pos++ ))
|
||||
[[ $BUFFER[$pos+1] == $quotetype ]] && break
|
||||
done
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Now highlight all found brackets
|
||||
for pos in ${(k)levelpos}; do
|
||||
if [[ -n $matching[$pos] ]] && [[ $typepos[$pos] == $typepos[$matching[$pos]] ]]; then
|
||||
local bracket_color_size=${#ZSH_HIGHLIGHT_STYLES[(I)bracket-level-*]}
|
||||
local bracket_color_level=bracket-level-$(( (levelpos[$pos] - 1) % bracket_color_size + 1 ))
|
||||
local style=$ZSH_HIGHLIGHT_STYLES[$bracket_color_level]
|
||||
region_highlight+=("$pos $((pos + 1)) $style")
|
||||
else
|
||||
local style=$ZSH_HIGHLIGHT_STYLES[bracket-error]
|
||||
region_highlight+=("$pos $((pos + 1)) $style")
|
||||
fi
|
||||
done
|
||||
|
||||
# If cursor is on a bracket, then highlight corresponding bracket, if any
|
||||
pos=$CURSOR
|
||||
if [[ -n $levelpos[$pos] ]] && [[ -n $matching[$pos] ]]; then
|
||||
local otherpos=$matching[$pos]
|
||||
local style=$ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]
|
||||
region_highlight+=("$otherpos $((otherpos + 1)) $style")
|
||||
fi
|
||||
}
|
||||
|
||||
# Helper function to differentiate type
|
||||
_zsh_highlight_brackets_highlighter_brackettype()
|
||||
{
|
||||
case $1 in
|
||||
["()"]) typepos[$pos]=round;;
|
||||
["[]"]) typepos[$pos]=bracket;;
|
||||
["{}"]) typepos[$pos]=curly;;
|
||||
*) ;;
|
||||
esac
|
||||
}
|
38
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/test-data/mismatch-patentheses.zsh
Executable file
38
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/test-data/mismatch-patentheses.zsh
Executable file
@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='echo ({x}]'
|
||||
|
||||
expected_region_highlight=(
|
||||
"5 5 $ZSH_HIGHLIGHT_STYLES[bracket-error]" # (
|
||||
"6 6 $ZSH_HIGHLIGHT_STYLES[bracket-level-2]" # {
|
||||
"8 8 $ZSH_HIGHLIGHT_STYLES[bracket-level-2]" # }
|
||||
"9 9 $ZSH_HIGHLIGHT_STYLES[bracket-error]" # )
|
||||
)
|
40
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/test-data/nested-parentheses.zsh
Executable file
40
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/test-data/nested-parentheses.zsh
Executable file
@ -0,0 +1,40 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='echo $(echo ${(z)array})'
|
||||
|
||||
expected_region_highlight=(
|
||||
"6 6 $ZSH_HIGHLIGHT_STYLES[bracket-level-1]" # (
|
||||
"13 13 $ZSH_HIGHLIGHT_STYLES[bracket-level-2]" # {
|
||||
"14 14 $ZSH_HIGHLIGHT_STYLES[bracket-level-3]" # (
|
||||
"16 16 $ZSH_HIGHLIGHT_STYLES[bracket-level-3]" # )
|
||||
"22 22 $ZSH_HIGHLIGHT_STYLES[bracket-level-2]" # }
|
||||
"23 23 $ZSH_HIGHLIGHT_STYLES[bracket-level-1]" # )
|
||||
)
|
35
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/test-data/quoted-patentheses.zsh
Executable file
35
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/test-data/quoted-patentheses.zsh
Executable file
@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='echo "foo ( bar"'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 15 $ZSH_HIGHLIGHT_STYLES[none]" # We expect the brackets highlighter to do nothing
|
||||
)
|
38
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/test-data/simple-parentheses.zsh
Executable file
38
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/test-data/simple-parentheses.zsh
Executable file
@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='echo ({x})'
|
||||
|
||||
expected_region_highlight=(
|
||||
"5 5 $ZSH_HIGHLIGHT_STYLES[bracket-level-1]" # (
|
||||
"6 6 $ZSH_HIGHLIGHT_STYLES[bracket-level-2]" # {
|
||||
"8 8 $ZSH_HIGHLIGHT_STYLES[bracket-level-2]" # }
|
||||
"9 9 $ZSH_HIGHLIGHT_STYLES[bracket-level-1]" # )
|
||||
)
|
37
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/test-data/unclosed-patentheses.zsh
Executable file
37
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/test-data/unclosed-patentheses.zsh
Executable file
@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='echo ({x}'
|
||||
|
||||
expected_region_highlight=(
|
||||
"5 5 $ZSH_HIGHLIGHT_STYLES[bracket-error]" # (
|
||||
"6 6 $ZSH_HIGHLIGHT_STYLES[bracket-level-2]" # {
|
||||
"8 8 $ZSH_HIGHLIGHT_STYLES[bracket-level-2]" # }
|
||||
)
|
37
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/test-data/unclosed-patentheses2.zsh
Executable file
37
universal/.zsh/zsh-syntax-highlight/highlighters/brackets/test-data/unclosed-patentheses2.zsh
Executable file
@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='echo {x})'
|
||||
|
||||
expected_region_highlight=(
|
||||
"5 5 $ZSH_HIGHLIGHT_STYLES[bracket-level-1]" # {
|
||||
"7 7 $ZSH_HIGHLIGHT_STYLES[bracket-level-1]" # }
|
||||
"8 8 $ZSH_HIGHLIGHT_STYLES[bracket-error]" # )
|
||||
)
|
24
universal/.zsh/zsh-syntax-highlight/highlighters/cursor/README.md
Executable file
24
universal/.zsh/zsh-syntax-highlight/highlighters/cursor/README.md
Executable file
@ -0,0 +1,24 @@
|
||||
zsh-syntax-highlighting / highlighters / cursor
|
||||
=================================================
|
||||
|
||||
This is the ***cursor*** highlighter, that highlights the cursor.
|
||||
|
||||
|
||||
How to activate it
|
||||
------------------
|
||||
To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=( [...] cursor)
|
||||
|
||||
|
||||
How to tweak it
|
||||
---------------
|
||||
This highlighter defines the following styles:
|
||||
|
||||
* `cursor` - the style for the current cursor position
|
||||
|
||||
To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`, for example in `~/.zshrc`:
|
||||
|
||||
ZSH_HIGHLIGHT_STYLES[cursor]='bg=blue'
|
||||
|
||||
The syntax for declaring styles is [documented here](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135).
|
@ -0,0 +1,45 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# Define default styles.
|
||||
: ${ZSH_HIGHLIGHT_STYLES[cursor]:=standout}
|
||||
|
||||
# Whether the cursor highlighter should be called or not.
|
||||
_zsh_highlight_cursor_highlighter_predicate()
|
||||
{
|
||||
_zsh_highlight_cursor_moved
|
||||
}
|
||||
|
||||
# Cursor highlighting function.
|
||||
_zsh_highlight_cursor_highlighter()
|
||||
{
|
||||
region_highlight+=("$CURSOR $(( $CURSOR + 1 )) $ZSH_HIGHLIGHT_STYLES[cursor]")
|
||||
}
|
58
universal/.zsh/zsh-syntax-highlight/highlighters/main/README.md
Executable file
58
universal/.zsh/zsh-syntax-highlight/highlighters/main/README.md
Executable file
@ -0,0 +1,58 @@
|
||||
zsh-syntax-highlighting / highlighters / main
|
||||
=============================================
|
||||
|
||||
This is the ***main*** highlighter, that highlights:
|
||||
|
||||
* Commands
|
||||
* Options
|
||||
* Arguments
|
||||
* Paths
|
||||
* Strings
|
||||
|
||||
How to activate it
|
||||
------------------
|
||||
To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=( [...] main)
|
||||
|
||||
This highlighter is active by default.
|
||||
|
||||
|
||||
How to tweak it
|
||||
---------------
|
||||
This highlighter defines the following styles:
|
||||
|
||||
* `unknown-token` - unknown tokens / errors
|
||||
* `reserved-word` - shell reserved words
|
||||
* `alias` - aliases
|
||||
* `builtin` - shell builtin commands
|
||||
* `function` - functions
|
||||
* `command` - commands
|
||||
* `precommand` - precommands (i.e. exec, builtin, ...)
|
||||
* `commandseparator` - command separation tokens
|
||||
* `hashed-command` - hashed commands
|
||||
* `path` - paths
|
||||
* `globbing` - globbing expressions
|
||||
* `history-expansion` - history expansion expressions
|
||||
* `single-hyphen-option` - single hyphen options
|
||||
* `double-hyphen-option` - double hyphen options
|
||||
* `back-quoted-argument` - backquoted expressions
|
||||
* `single-quoted-argument` - single quoted arguments
|
||||
* `double-quoted-argument` - double quoted arguments
|
||||
* `dollar-double-quoted-argument` - dollar double quoted arguments
|
||||
* `back-double-quoted-argument` - back double quoted arguments
|
||||
* `assign` - variable assignments
|
||||
* `default` - parts of the buffer that do not match anything
|
||||
|
||||
To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`, for example in `~/.zshrc`:
|
||||
|
||||
# To differentiate aliases from other command types
|
||||
ZSH_HIGHLIGHT_STYLES[alias]='fg=magenta,bold'
|
||||
|
||||
# To have paths colored instead of underlined
|
||||
ZSH_HIGHLIGHT_STYLES[path]='fg=cyan'
|
||||
|
||||
# To disable highlighting of globbing expressions
|
||||
ZSH_HIGHLIGHT_STYLES[globbing]='none'
|
||||
|
||||
The syntax for declaring styles is [documented here](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135).
|
185
universal/.zsh/zsh-syntax-highlight/highlighters/main/main-highlighter.zsh
Executable file
185
universal/.zsh/zsh-syntax-highlight/highlighters/main/main-highlighter.zsh
Executable file
@ -0,0 +1,185 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# Define default styles.
|
||||
: ${ZSH_HIGHLIGHT_STYLES[default]:=none}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[unknown-token]:=fg=red,bold}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[reserved-word]:=fg=yellow}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[alias]:=fg=green}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[builtin]:=fg=green}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[function]:=fg=green}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[command]:=fg=green}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[precommand]:=fg=green,}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[commandseparator]:=none}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[hashed-command]:=fg=green}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[path]:=fg=blue,bold}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[globbing]:=fg=blue}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[history-expansion]:=fg=blue}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[single-hyphen-option]:=fg=magenta,bold}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[double-hyphen-option]:=fg=magenta,bold}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[back-quoted-argument]:=none}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[single-quoted-argument]:=fg=yellow}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[double-quoted-argument]:=fg=yellow}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]:=fg=cyan}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]:=fg=cyan}
|
||||
: ${ZSH_HIGHLIGHT_STYLES[assign]:=none}
|
||||
|
||||
# Whether the highlighter should be called or not.
|
||||
_zsh_highlight_main_highlighter_predicate()
|
||||
{
|
||||
_zsh_highlight_buffer_modified
|
||||
}
|
||||
|
||||
# Main syntax highlighting function.
|
||||
_zsh_highlight_main_highlighter()
|
||||
{
|
||||
emulate -L zsh
|
||||
setopt localoptions extendedglob bareglobqual
|
||||
local start_pos=0 end_pos highlight_glob=true new_expression=true arg style
|
||||
typeset -a ZSH_HIGHLIGHT_TOKENS_COMMANDSEPARATOR
|
||||
typeset -a ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS
|
||||
typeset -a ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS
|
||||
region_highlight=()
|
||||
|
||||
ZSH_HIGHLIGHT_TOKENS_COMMANDSEPARATOR=(
|
||||
'|' '||' ';' '&' '&&'
|
||||
)
|
||||
ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS=(
|
||||
'builtin' 'command' 'exec' 'nocorrect' 'noglob' 'sudo'
|
||||
)
|
||||
# Tokens that are always immediately followed by a command.
|
||||
ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS=(
|
||||
$ZSH_HIGHLIGHT_TOKENS_COMMANDSEPARATOR $ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS
|
||||
)
|
||||
|
||||
for arg in ${(z)BUFFER}; do
|
||||
local substr_color=0
|
||||
[[ $start_pos -eq 0 && $arg = 'noglob' ]] && highlight_glob=false
|
||||
((start_pos+=${#BUFFER[$start_pos+1,-1]}-${#${BUFFER[$start_pos+1,-1]##[[:space:]]#}}))
|
||||
((end_pos=$start_pos+${#arg}))
|
||||
if $new_expression; then
|
||||
new_expression=false
|
||||
if [[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS:#"$arg"} ]]; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[precommand]
|
||||
else
|
||||
res=$(LC_ALL=C builtin type -w $arg 2>/dev/null)
|
||||
case $res in
|
||||
*': reserved') style=$ZSH_HIGHLIGHT_STYLES[reserved-word];;
|
||||
*': alias') style=$ZSH_HIGHLIGHT_STYLES[alias]
|
||||
local aliased_command="${"$(alias $arg)"#*=}"
|
||||
[[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS:#"$aliased_command"} && -z ${(M)ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS:#"$arg"} ]] && ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS+=($arg)
|
||||
;;
|
||||
*': builtin') style=$ZSH_HIGHLIGHT_STYLES[builtin];;
|
||||
*': function') style=$ZSH_HIGHLIGHT_STYLES[function];;
|
||||
*': command') style=$ZSH_HIGHLIGHT_STYLES[command];;
|
||||
*': hashed') style=$ZSH_HIGHLIGHT_STYLES[hashed-command];;
|
||||
*) if _zsh_highlight_main_highlighter_check_assign; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[assign]
|
||||
new_expression=true
|
||||
elif _zsh_highlight_main_highlighter_check_path; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[path]
|
||||
elif [[ $arg[0,1] = $histchars[0,1] ]]; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[history-expansion]
|
||||
else
|
||||
style=$ZSH_HIGHLIGHT_STYLES[unknown-token]
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
else
|
||||
case $arg in
|
||||
'--'*) style=$ZSH_HIGHLIGHT_STYLES[double-hyphen-option];;
|
||||
'-'*) style=$ZSH_HIGHLIGHT_STYLES[single-hyphen-option];;
|
||||
"'"*"'") style=$ZSH_HIGHLIGHT_STYLES[single-quoted-argument];;
|
||||
'"'*'"') style=$ZSH_HIGHLIGHT_STYLES[double-quoted-argument]
|
||||
region_highlight+=("$start_pos $end_pos $style")
|
||||
_zsh_highlight_main_highlighter_highlight_string
|
||||
substr_color=1
|
||||
;;
|
||||
'`'*'`') style=$ZSH_HIGHLIGHT_STYLES[back-quoted-argument];;
|
||||
*"*"*) $highlight_glob && style=$ZSH_HIGHLIGHT_STYLES[globbing] || style=$ZSH_HIGHLIGHT_STYLES[default];;
|
||||
*) if _zsh_highlight_main_highlighter_check_path; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[path]
|
||||
elif [[ $arg[0,1] = $histchars[0,1] ]]; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[history-expansion]
|
||||
elif [[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_COMMANDSEPARATOR:#"$arg"} ]]; then
|
||||
style=$ZSH_HIGHLIGHT_STYLES[commandseparator]
|
||||
else
|
||||
style=$ZSH_HIGHLIGHT_STYLES[default]
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
[[ $substr_color = 0 ]] && region_highlight+=("$start_pos $end_pos $style")
|
||||
[[ -n ${(M)ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS:#"$arg"} ]] && new_expression=true
|
||||
start_pos=$end_pos
|
||||
done
|
||||
}
|
||||
|
||||
# Check if the argument is variable assignment
|
||||
_zsh_highlight_main_highlighter_check_assign()
|
||||
{
|
||||
setopt localoptions extended_glob
|
||||
[[ ${(Q)arg} == [[:alpha:]_]([[:alnum:]_])#=* ]]
|
||||
}
|
||||
|
||||
# Check if the argument is a path.
|
||||
_zsh_highlight_main_highlighter_check_path()
|
||||
{
|
||||
setopt localoptions nonomatch
|
||||
local expanded_path; : ${expanded_path:=${(Q)~arg}}
|
||||
[[ -z $expanded_path ]] && return 1
|
||||
[[ -e $expanded_path ]] && return 0
|
||||
[[ ! -e ${expanded_path:h} ]] && return 1
|
||||
[[ ${BUFFER[1]} != "-" && ${#BUFFER} == $end_pos && -n $(print ${expanded_path}*(N)) ]] && return 0
|
||||
return 1
|
||||
}
|
||||
|
||||
# Highlight special chars inside double-quoted strings
|
||||
_zsh_highlight_main_highlighter_highlight_string()
|
||||
{
|
||||
setopt localoptions noksharrays
|
||||
local i j k style
|
||||
# Starting quote is at 1, so start parsing at offset 2 in the string.
|
||||
for (( i = 2 ; i < end_pos - start_pos ; i += 1 )) ; do
|
||||
(( j = i + start_pos - 1 ))
|
||||
(( k = j + 1 ))
|
||||
case "$arg[$i]" in
|
||||
'$') style=$ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument];;
|
||||
"\\") style=$ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]
|
||||
(( k += 1 )) # Color following char too.
|
||||
(( i += 1 )) # Skip parsing the escaped char.
|
||||
;;
|
||||
*) continue;;
|
||||
esac
|
||||
region_highlight+=("$j $k $style")
|
||||
done
|
||||
}
|
35
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/assign.zsh
Executable file
35
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/assign.zsh
Executable file
@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='A=1'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 3 $ZSH_HIGHLIGHT_STYLES[assign]" # A=1
|
||||
)
|
47
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/multiple-redirections.zsh
Executable file
47
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/multiple-redirections.zsh
Executable file
@ -0,0 +1,47 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='ps aux | grep java | sort | uniq | tail | head'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 2 $ZSH_HIGHLIGHT_STYLES[command]" # ps
|
||||
"4 6 $ZSH_HIGHLIGHT_STYLES[default]" # aux
|
||||
"8 8 $ZSH_HIGHLIGHT_STYLES[default]" # |
|
||||
"10 13 $ZSH_HIGHLIGHT_STYLES[command]" # grep
|
||||
"15 18 $ZSH_HIGHLIGHT_STYLES[default]" # java
|
||||
"20 20 $ZSH_HIGHLIGHT_STYLES[default]" # |
|
||||
"22 25 $ZSH_HIGHLIGHT_STYLES[command]" # sort
|
||||
"27 27 $ZSH_HIGHLIGHT_STYLES[default]" # |
|
||||
"29 32 $ZSH_HIGHLIGHT_STYLES[command]" # uniq
|
||||
"34 34 $ZSH_HIGHLIGHT_STYLES[default]" # |
|
||||
"36 39 $ZSH_HIGHLIGHT_STYLES[command]" # tail
|
||||
"41 41 $ZSH_HIGHLIGHT_STYLES[default]" # |
|
||||
"43 46 $ZSH_HIGHLIGHT_STYLES[command]" # head
|
||||
)
|
@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='ls highlighters/main/test-data/path-space-\ .zsh'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 2 $ZSH_HIGHLIGHT_STYLES[command]" # ls
|
||||
"4 48 $ZSH_HIGHLIGHT_STYLES[path]" # highlighters/main/test-data/path-space-\ .zsh
|
||||
)
|
36
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/path-tilde-home.zsh
Executable file
36
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/path-tilde-home.zsh
Executable file
@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='ls ~'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 2 $ZSH_HIGHLIGHT_STYLES[command]" # ls
|
||||
"4 4 $ZSH_HIGHLIGHT_STYLES[path]" # ~
|
||||
)
|
38
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/path-tilde-named.zsh
Executable file
38
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/path-tilde-named.zsh
Executable file
@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
hash -d D=highlighters/main/test-data
|
||||
|
||||
BUFFER='ls ~D/path-tilde-named.zsh'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 2 $ZSH_HIGHLIGHT_STYLES[command]" # ls
|
||||
"4 23 $ZSH_HIGHLIGHT_STYLES[path]" # ~D/path-tilde-named.zsh
|
||||
)
|
36
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/path.zsh
Executable file
36
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/path.zsh
Executable file
@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='ls highlighters/main/test-data/path.zsh'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 2 $ZSH_HIGHLIGHT_STYLES[command]" # ls
|
||||
"4 39 $ZSH_HIGHLIGHT_STYLES[path]" # highlighters/main/test-data/path.zsh
|
||||
)
|
35
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/simple-command.zsh
Executable file
35
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/simple-command.zsh
Executable file
@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='ls'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 2 $ZSH_HIGHLIGHT_STYLES[command]" # ls
|
||||
)
|
39
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/simple-redirection.zsh
Executable file
39
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/simple-redirection.zsh
Executable file
@ -0,0 +1,39 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='ps aux | grep java'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 2 $ZSH_HIGHLIGHT_STYLES[command]" # ps
|
||||
"4 6 $ZSH_HIGHLIGHT_STYLES[default]" # aux
|
||||
"8 8 $ZSH_HIGHLIGHT_STYLES[default]" # |
|
||||
"9 12 $ZSH_HIGHLIGHT_STYLES[command]" # grep
|
||||
"14 17 $ZSH_HIGHLIGHT_STYLES[default]" # java
|
||||
)
|
35
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/unknown-command.zsh
Executable file
35
universal/.zsh/zsh-syntax-highlight/highlighters/main/test-data/unknown-command.zsh
Executable file
@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
BUFFER='azertyuiop'
|
||||
|
||||
expected_region_highlight=(
|
||||
"1 10 $ZSH_HIGHLIGHT_STYLES[unknown-token]" # azertyuiop
|
||||
)
|
21
universal/.zsh/zsh-syntax-highlight/highlighters/pattern/README.md
Executable file
21
universal/.zsh/zsh-syntax-highlight/highlighters/pattern/README.md
Executable file
@ -0,0 +1,21 @@
|
||||
zsh-syntax-highlighting / highlighters / pattern
|
||||
================================================
|
||||
|
||||
This is the ***pattern*** highlighter, that highlights user defined patterns.
|
||||
|
||||
|
||||
How to activate it
|
||||
------------------
|
||||
To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=( [...] pattern)
|
||||
|
||||
|
||||
How to tweak it
|
||||
---------------
|
||||
To use this highlighter, associate patterns with styles in the `ZSH_HIGHLIGHT_PATTERNS` array, for example in `~/.zshrc`:
|
||||
|
||||
# To have commands starting with `rm -rf` in red:
|
||||
ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red')
|
||||
|
||||
The syntax for declaring styles is [documented here](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135).
|
@ -0,0 +1,60 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# List of keyword and color pairs.
|
||||
typeset -gA ZSH_HIGHLIGHT_PATTERNS
|
||||
|
||||
# Whether the pattern highlighter should be called or not.
|
||||
_zsh_highlight_pattern_highlighter_predicate()
|
||||
{
|
||||
_zsh_highlight_buffer_modified
|
||||
}
|
||||
|
||||
# Pattern syntax highlighting function.
|
||||
_zsh_highlight_pattern_highlighter()
|
||||
{
|
||||
setopt localoptions extendedglob
|
||||
local pattern
|
||||
for pattern in ${(k)ZSH_HIGHLIGHT_PATTERNS}; do
|
||||
_zsh_highlight_pattern_highlighter_loop "$BUFFER" "$pattern"
|
||||
done
|
||||
}
|
||||
|
||||
_zsh_highlight_pattern_highlighter_loop()
|
||||
{
|
||||
# This does *not* do its job syntactically, sorry.
|
||||
local buf="$1" pat="$2"
|
||||
local -a match mbegin mend
|
||||
if [[ "$buf" == (#b)(*)(${~pat})* ]]; then
|
||||
region_highlight+=("$((mbegin[2] - 1)) $mend[2] $ZSH_HIGHLIGHT_PATTERNS[$pat]")
|
||||
"$0" "$match[1]" "$pat"; return $?
|
||||
fi
|
||||
}
|
24
universal/.zsh/zsh-syntax-highlight/highlighters/root/README.md
Executable file
24
universal/.zsh/zsh-syntax-highlight/highlighters/root/README.md
Executable file
@ -0,0 +1,24 @@
|
||||
zsh-syntax-highlighting / highlighters / root
|
||||
=================================================
|
||||
|
||||
This is the ***root*** highlighter, that highlights the whole line if the current user is root.
|
||||
|
||||
|
||||
How to activate it
|
||||
------------------
|
||||
To activate it, add it to `ZSH_HIGHLIGHT_HIGHLIGHTERS`:
|
||||
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=( [...] root)
|
||||
|
||||
|
||||
How to tweak it
|
||||
---------------
|
||||
This highlighter defines the following styles:
|
||||
|
||||
* `root` - the style for the whole line if the current user is root.
|
||||
|
||||
To override one of those styles, change its entry in `ZSH_HIGHLIGHT_STYLES`, for example in `~/.zshrc`:
|
||||
|
||||
ZSH_HIGHLIGHT_STYLES[root]='bg=red'
|
||||
|
||||
The syntax for declaring styles is [documented here](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135).
|
45
universal/.zsh/zsh-syntax-highlight/highlighters/root/root-highlighter.zsh
Executable file
45
universal/.zsh/zsh-syntax-highlight/highlighters/root/root-highlighter.zsh
Executable file
@ -0,0 +1,45 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# Define default styles.
|
||||
: ${ZSH_HIGHLIGHT_STYLES[root]:=standout}
|
||||
|
||||
# Whether the root highlighter should be called or not.
|
||||
_zsh_highlight_root_highlighter_predicate()
|
||||
{
|
||||
_zsh_highlight_buffer_modified
|
||||
}
|
||||
|
||||
# root highlighting function.
|
||||
_zsh_highlight_root_highlighter()
|
||||
{
|
||||
[[ $(command id -u) -eq 0 ]] && region_highlight+=("0 $#BUFFER $ZSH_HIGHLIGHT_STYLES[root]")
|
||||
}
|
20
universal/.zsh/zsh-syntax-highlight/tests/README.md
Executable file
20
universal/.zsh/zsh-syntax-highlight/tests/README.md
Executable file
@ -0,0 +1,20 @@
|
||||
zsh-syntax-highlighting / tests
|
||||
===============================
|
||||
|
||||
Utility scripts for testing zsh-syntax-highlighting highlighters.
|
||||
|
||||
The tests expect the highlighter directory to contain a `test-data` directory with test data files. See the [main highlighter](../highlighters/main/test-data) for examples.
|
||||
|
||||
|
||||
highlighting test
|
||||
-----------------
|
||||
[`test-highlighting.zsh`](tests/test-highlighting.zsh) tests the correctness of the highlighting. Usage:
|
||||
|
||||
zsh test-highlighting.zsh <HIGHLIGHTER NAME>
|
||||
|
||||
|
||||
performance test
|
||||
----------------
|
||||
[`test-perfs.zsh`](tests/test-perfs.zsh) measures the time spent doing the highlighting. Usage:
|
||||
|
||||
zsh test-perfs.zsh <HIGHLIGHTER NAME>
|
115
universal/.zsh/zsh-syntax-highlight/tests/test-highlighting.zsh
Executable file
115
universal/.zsh/zsh-syntax-highlight/tests/test-highlighting.zsh
Executable file
@ -0,0 +1,115 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# Check an highlighter was given as argument.
|
||||
[[ -n "$1" ]] || {
|
||||
echo "You must provide the name of a valid highlighter as argument." >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check the highlighter is valid.
|
||||
[[ -f ${0:h:h}/highlighters/$1/$1-highlighter.zsh ]] || {
|
||||
echo "Could not find highlighter '$1'." >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check the highlighter has test data.
|
||||
[[ -d ${0:h:h}/highlighters/$1/test-data ]] || {
|
||||
echo "Highlighter '$1' has no test data." >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
local -a errors highlight_zone
|
||||
local -A observed_result
|
||||
|
||||
# Load the main script.
|
||||
. ${0:h:h}/zsh-syntax-highlighting.zsh
|
||||
|
||||
# Activate the highlighter.
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=($1)
|
||||
|
||||
# Process each test data file in test data directory.
|
||||
for data_file in ${0:h:h}/highlighters/$1/test-data/*; do
|
||||
|
||||
# Load the data and prepare checking it.
|
||||
BUFFER= ; expected_region_highlight=(); errors=()
|
||||
echo -n "* ${data_file:t:r}: "
|
||||
. $data_file
|
||||
|
||||
# Check the data declares $BUFFER.
|
||||
if [[ ${#BUFFER} -eq 0 ]]; then
|
||||
errors+=("'BUFFER' is not declared or blank.")
|
||||
else
|
||||
|
||||
# Check the data declares $expected_region_highlight.
|
||||
if [[ ${#expected_region_highlight} -eq 0 ]]; then
|
||||
errors+=("'expected_region_highlight' is not declared or empty.")
|
||||
else
|
||||
|
||||
# Process the data.
|
||||
region_highlight=()
|
||||
_zsh_highlight
|
||||
|
||||
# Overlapping regions can be declared in region_highlight, so we first build an array of the
|
||||
# observed highlighting.
|
||||
observed_result=()
|
||||
for i in {1..${#region_highlight}}; do
|
||||
highlight_zone=${(z)region_highlight[$i]}
|
||||
for j in {$highlight_zone[1]..$highlight_zone[2]}; do
|
||||
observed_result[$j]=$highlight_zone[3]
|
||||
done
|
||||
done
|
||||
|
||||
# Then we compare the observed result with the expected one.
|
||||
for i in {1..${#expected_region_highlight}}; do
|
||||
highlight_zone=${(z)expected_region_highlight[$i]}
|
||||
for j in {$highlight_zone[1]..$highlight_zone[2]}; do
|
||||
if [[ "$observed_result[$j]" != "$highlight_zone[3]" ]]; then
|
||||
errors+=("'$BUFFER[$highlight_zone[1],$highlight_zone[2]]' [$highlight_zone[1],$highlight_zone[2]]: expected '$highlight_zone[3]', observed '$observed_result[$j]'.")
|
||||
break
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
# Format result/errors.
|
||||
if [[ ${#errors} -eq 0 ]]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "KO"
|
||||
for error in $errors; do
|
||||
echo " - $error"
|
||||
done
|
||||
fi
|
||||
|
||||
done
|
75
universal/.zsh/zsh-syntax-highlight/tests/test-perfs.zsh
Executable file
75
universal/.zsh/zsh-syntax-highlight/tests/test-perfs.zsh
Executable file
@ -0,0 +1,75 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# Check an highlighter was given as argument.
|
||||
[[ -n "$1" ]] || {
|
||||
echo "You must provide the name of a valid highlighter as argument." >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check the highlighter is valid.
|
||||
[[ -f ${0:h:h}/highlighters/$1/$1-highlighter.zsh ]] || {
|
||||
echo "Could not find highlighter '$1'." >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check the highlighter has test data.
|
||||
[[ -d ${0:h:h}/highlighters/$1/test-data ]] || {
|
||||
echo "Highlighter '$1' has no test data." >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Load the main script.
|
||||
. ${0:h:h}/zsh-syntax-highlighting.zsh
|
||||
|
||||
# Activate the highlighter.
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=($1)
|
||||
|
||||
# Process each test data file in test data directory.
|
||||
for data_file in ${0:h:h}/highlighters/$1/test-data/*; do
|
||||
|
||||
# Load the data and prepare checking it.
|
||||
BUFFER=
|
||||
echo -n "* ${data_file:t:r}: "
|
||||
. $data_file
|
||||
|
||||
# Check the data declares $BUFFER.
|
||||
if [[ ${#BUFFER} -eq 0 ]]; then
|
||||
echo "KO\n - 'BUFFER' is not declared or blank."
|
||||
else
|
||||
|
||||
# Measure the time taken by _zsh_highlight.
|
||||
TIMEFMT="%*Es"
|
||||
time ( BUFFER="$BUFFER" && _zsh_highlight)
|
||||
|
||||
fi
|
||||
|
||||
done
|
218
universal/.zsh/zsh-syntax-highlight/zsh-syntax-highlighting.plugin.zsh
Executable file
218
universal/.zsh/zsh-syntax-highlight/zsh-syntax-highlighting.plugin.zsh
Executable file
@ -0,0 +1,218 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Core highlighting update system
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
# Array declaring active highlighters names.
|
||||
typeset -ga ZSH_HIGHLIGHT_HIGHLIGHTERS
|
||||
|
||||
# Update ZLE buffer syntax highlighting.
|
||||
#
|
||||
# Invokes each highlighter that needs updating.
|
||||
# This function is supposed to be called whenever the ZLE state changes.
|
||||
_zsh_highlight()
|
||||
{
|
||||
setopt localoptions nowarncreateglobal
|
||||
|
||||
# Store the previous command return code to restore it whatever happens.
|
||||
local ret=$?
|
||||
|
||||
# Do not highlight if there are more than 300 chars in the buffer. It's most
|
||||
# likely a pasted command or a huge list of files in that case..
|
||||
[[ -n ${ZSH_HIGHLIGHT_MAXLENGTH:-} ]] && [[ $#BUFFER -gt $ZSH_HIGHLIGHT_MAXLENGTH ]] && return $ret
|
||||
|
||||
# Do not highlight if there are pending inputs (copy/paste).
|
||||
[[ $PENDING -gt 0 ]] && return $ret
|
||||
|
||||
{
|
||||
local -a selected_highlighters
|
||||
local cache_place
|
||||
|
||||
# Select which highlighters in ZSH_HIGHLIGHT_HIGHLIGHTERS need to be invoked.
|
||||
local highlighter; for highlighter in $ZSH_HIGHLIGHT_HIGHLIGHTERS; do
|
||||
|
||||
# If highlighter needs to be invoked
|
||||
if "_zsh_highlight_${highlighter}_highlighter_predicate"; then
|
||||
|
||||
# Mark the highlighter as selected for update.
|
||||
selected_highlighters+=($highlighter)
|
||||
|
||||
# Remove what was stored in its cache from region_highlight.
|
||||
cache_place="_zsh_highlight_${highlighter}_highlighter_cache"
|
||||
typeset -ga ${cache_place}
|
||||
[[ ${#${(P)cache_place}} -gt 0 ]] && [[ ! -z ${region_highlight-} ]] && region_highlight=(${region_highlight:#(${(P~j.|.)cache_place})})
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
# Invoke each selected highlighter and store the result in its cache.
|
||||
local -a region_highlight_copy
|
||||
for highlighter in $selected_highlighters; do
|
||||
cache_place="_zsh_highlight_${highlighter}_highlighter_cache"
|
||||
region_highlight_copy=($region_highlight)
|
||||
{
|
||||
"_zsh_highlight_${highlighter}_highlighter"
|
||||
} always {
|
||||
[[ ! -z ${region_highlight-} ]] && : ${(PA)cache_place::=${region_highlight:#(${(~j.|.)region_highlight_copy})}}
|
||||
}
|
||||
done
|
||||
|
||||
} always {
|
||||
_ZSH_HIGHLIGHT_PRIOR_BUFFER=$BUFFER
|
||||
_ZSH_HIGHLIGHT_PRIOR_CURSOR=$CURSOR
|
||||
return $ret
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# API/utility functions for highlighters
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
# Array used by highlighters to declare user overridable styles.
|
||||
typeset -gA ZSH_HIGHLIGHT_STYLES
|
||||
|
||||
# Whether the command line buffer has been modified or not.
|
||||
#
|
||||
# Returns 0 if the buffer has changed since _zsh_highlight was last called.
|
||||
_zsh_highlight_buffer_modified()
|
||||
{
|
||||
[[ "${_ZSH_HIGHLIGHT_PRIOR_BUFFER:-}" != "$BUFFER" ]]
|
||||
}
|
||||
|
||||
# Whether the cursor has moved or not.
|
||||
#
|
||||
# Returns 0 if the cursor has moved since _zsh_highlight was last called.
|
||||
_zsh_highlight_cursor_moved()
|
||||
{
|
||||
[[ -n $CURSOR ]] && [[ -n ${_ZSH_HIGHLIGHT_PRIOR_CURSOR-} ]] && (($_ZSH_HIGHLIGHT_PRIOR_CURSOR != $CURSOR))
|
||||
}
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Setup functions
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
# Rebind all ZLE widgets to make them invoke _zsh_highlights.
|
||||
_zsh_highlight_bind_widgets()
|
||||
{
|
||||
# Load ZSH module zsh/zleparameter, needed to override user defined widgets.
|
||||
zmodload zsh/zleparameter 2>/dev/null || {
|
||||
echo 'zsh-syntax-highlighting: failed loading zsh/zleparameter.' >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
# Override ZLE widgets to make them invoke _zsh_highlight.
|
||||
local cur_widget
|
||||
for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|_*|orig-*|run-help|which-command|beep)}; do
|
||||
case $widgets[$cur_widget] in
|
||||
|
||||
# Already rebound event: do nothing.
|
||||
user:$cur_widget|user:_zsh_highlight_widget_*);;
|
||||
|
||||
# User defined widget: override and rebind old one with prefix "orig-".
|
||||
user:*) eval "zle -N orig-$cur_widget ${widgets[$cur_widget]#*:}; \
|
||||
_zsh_highlight_widget_$cur_widget() { builtin zle orig-$cur_widget -- \"\$@\" && _zsh_highlight }; \
|
||||
zle -N $cur_widget _zsh_highlight_widget_$cur_widget";;
|
||||
|
||||
# Completion widget: override and rebind old one with prefix "orig-".
|
||||
completion:*) eval "zle -C orig-$cur_widget ${${widgets[$cur_widget]#*:}/:/ }; \
|
||||
_zsh_highlight_widget_$cur_widget() { builtin zle orig-$cur_widget -- \"\$@\" && _zsh_highlight }; \
|
||||
zle -N $cur_widget _zsh_highlight_widget_$cur_widget";;
|
||||
|
||||
# Builtin widget: override and make it call the builtin ".widget".
|
||||
builtin) eval "_zsh_highlight_widget_$cur_widget() { builtin zle .$cur_widget -- \"\$@\" && _zsh_highlight }; \
|
||||
zle -N $cur_widget _zsh_highlight_widget_$cur_widget";;
|
||||
|
||||
# Default: unhandled case.
|
||||
*) echo "zsh-syntax-highlighting: unhandled ZLE widget '$cur_widget'" >&2 ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
# Load highlighters from directory.
|
||||
#
|
||||
# Arguments:
|
||||
# 1) Path to the highlighters directory.
|
||||
_zsh_highlight_load_highlighters()
|
||||
{
|
||||
# Check the directory exists.
|
||||
[[ -d "$1" ]] || {
|
||||
echo "zsh-syntax-highlighting: highlighters directory '$1' not found." >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
# Load highlighters from highlighters directory and check they define required functions.
|
||||
local highlighter highlighter_dir
|
||||
for highlighter_dir ($1/*/); do
|
||||
highlighter="${highlighter_dir:t}"
|
||||
[[ -f "$highlighter_dir/${highlighter}-highlighter.zsh" ]] && {
|
||||
. "$highlighter_dir/${highlighter}-highlighter.zsh"
|
||||
type "_zsh_highlight_${highlighter}_highlighter" &> /dev/null &&
|
||||
type "_zsh_highlight_${highlighter}_highlighter_predicate" &> /dev/null || {
|
||||
echo "zsh-syntax-highlighting: '${highlighter}' highlighter should define both required functions '_zsh_highlight_${highlighter}_highlighter' and '_zsh_highlight_${highlighter}_highlighter_predicate' in '${highlighter_dir}/${highlighter}-highlighter.zsh'." >&2
|
||||
}
|
||||
}
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Setup
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
# Try binding widgets.
|
||||
_zsh_highlight_bind_widgets || {
|
||||
echo 'zsh-syntax-highlighting: failed binding ZLE widgets, exiting.' >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
# Resolve highlighters directory location.
|
||||
_zsh_highlight_load_highlighters "${ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR:-${0:h}/highlighters}" || {
|
||||
echo 'zsh-syntax-highlighting: failed loading highlighters, exiting.' >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
# Reset scratch variables when commandline is done.
|
||||
_zsh_highlight_preexec_hook()
|
||||
{
|
||||
_ZSH_HIGHLIGHT_PRIOR_BUFFER=
|
||||
_ZSH_HIGHLIGHT_PRIOR_CURSOR=
|
||||
}
|
||||
autoload -U add-zsh-hook
|
||||
add-zsh-hook preexec _zsh_highlight_preexec_hook 2>/dev/null || {
|
||||
echo 'zsh-syntax-highlighting: failed loading add-zsh-hook.' >&2
|
||||
}
|
||||
|
||||
# Initialize the array of active highlighters if needed.
|
||||
[[ $#ZSH_HIGHLIGHT_HIGHLIGHTERS -eq 0 ]] && ZSH_HIGHLIGHT_HIGHLIGHTERS=(main) || true
|
218
universal/.zsh/zsh-syntax-highlight/zsh-syntax-highlighting.zsh
Executable file
218
universal/.zsh/zsh-syntax-highlight/zsh-syntax-highlighting.zsh
Executable file
@ -0,0 +1,218 @@
|
||||
#!/usr/bin/env zsh
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without modification, are permitted
|
||||
# provided that the following conditions are met:
|
||||
#
|
||||
# * Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
# and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright notice, this list of
|
||||
# conditions and the following disclaimer in the documentation and/or other materials provided
|
||||
# with the distribution.
|
||||
# * Neither the name of the zsh-syntax-highlighting contributors nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software without specific prior
|
||||
# written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
# FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
|
||||
# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
|
||||
# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Core highlighting update system
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
# Array declaring active highlighters names.
|
||||
typeset -ga ZSH_HIGHLIGHT_HIGHLIGHTERS
|
||||
|
||||
# Update ZLE buffer syntax highlighting.
|
||||
#
|
||||
# Invokes each highlighter that needs updating.
|
||||
# This function is supposed to be called whenever the ZLE state changes.
|
||||
_zsh_highlight()
|
||||
{
|
||||
setopt localoptions nowarncreateglobal
|
||||
|
||||
# Store the previous command return code to restore it whatever happens.
|
||||
local ret=$?
|
||||
|
||||
# Do not highlight if there are more than 300 chars in the buffer. It's most
|
||||
# likely a pasted command or a huge list of files in that case..
|
||||
[[ -n ${ZSH_HIGHLIGHT_MAXLENGTH:-} ]] && [[ $#BUFFER -gt $ZSH_HIGHLIGHT_MAXLENGTH ]] && return $ret
|
||||
|
||||
# Do not highlight if there are pending inputs (copy/paste).
|
||||
[[ $PENDING -gt 0 ]] && return $ret
|
||||
|
||||
{
|
||||
local -a selected_highlighters
|
||||
local cache_place
|
||||
|
||||
# Select which highlighters in ZSH_HIGHLIGHT_HIGHLIGHTERS need to be invoked.
|
||||
local highlighter; for highlighter in $ZSH_HIGHLIGHT_HIGHLIGHTERS; do
|
||||
|
||||
# If highlighter needs to be invoked
|
||||
if "_zsh_highlight_${highlighter}_highlighter_predicate"; then
|
||||
|
||||
# Mark the highlighter as selected for update.
|
||||
selected_highlighters+=($highlighter)
|
||||
|
||||
# Remove what was stored in its cache from region_highlight.
|
||||
cache_place="_zsh_highlight_${highlighter}_highlighter_cache"
|
||||
typeset -ga ${cache_place}
|
||||
[[ ${#${(P)cache_place}} -gt 0 ]] && [[ ! -z ${region_highlight-} ]] && region_highlight=(${region_highlight:#(${(P~j.|.)cache_place})})
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
# Invoke each selected highlighter and store the result in its cache.
|
||||
local -a region_highlight_copy
|
||||
for highlighter in $selected_highlighters; do
|
||||
cache_place="_zsh_highlight_${highlighter}_highlighter_cache"
|
||||
region_highlight_copy=($region_highlight)
|
||||
{
|
||||
"_zsh_highlight_${highlighter}_highlighter"
|
||||
} always {
|
||||
[[ ! -z ${region_highlight-} ]] && : ${(PA)cache_place::=${region_highlight:#(${(~j.|.)region_highlight_copy})}}
|
||||
}
|
||||
done
|
||||
|
||||
} always {
|
||||
_ZSH_HIGHLIGHT_PRIOR_BUFFER=$BUFFER
|
||||
_ZSH_HIGHLIGHT_PRIOR_CURSOR=$CURSOR
|
||||
return $ret
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# API/utility functions for highlighters
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
# Array used by highlighters to declare user overridable styles.
|
||||
typeset -gA ZSH_HIGHLIGHT_STYLES
|
||||
|
||||
# Whether the command line buffer has been modified or not.
|
||||
#
|
||||
# Returns 0 if the buffer has changed since _zsh_highlight was last called.
|
||||
_zsh_highlight_buffer_modified()
|
||||
{
|
||||
[[ "${_ZSH_HIGHLIGHT_PRIOR_BUFFER:-}" != "$BUFFER" ]]
|
||||
}
|
||||
|
||||
# Whether the cursor has moved or not.
|
||||
#
|
||||
# Returns 0 if the cursor has moved since _zsh_highlight was last called.
|
||||
_zsh_highlight_cursor_moved()
|
||||
{
|
||||
[[ -n $CURSOR ]] && [[ -n ${_ZSH_HIGHLIGHT_PRIOR_CURSOR-} ]] && (($_ZSH_HIGHLIGHT_PRIOR_CURSOR != $CURSOR))
|
||||
}
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Setup functions
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
# Rebind all ZLE widgets to make them invoke _zsh_highlights.
|
||||
_zsh_highlight_bind_widgets()
|
||||
{
|
||||
# Load ZSH module zsh/zleparameter, needed to override user defined widgets.
|
||||
zmodload zsh/zleparameter 2>/dev/null || {
|
||||
echo 'zsh-syntax-highlighting: failed loading zsh/zleparameter.' >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
# Override ZLE widgets to make them invoke _zsh_highlight.
|
||||
local cur_widget
|
||||
for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|_*|orig-*|run-help|which-command|beep)}; do
|
||||
case $widgets[$cur_widget] in
|
||||
|
||||
# Already rebound event: do nothing.
|
||||
user:$cur_widget|user:_zsh_highlight_widget_*);;
|
||||
|
||||
# User defined widget: override and rebind old one with prefix "orig-".
|
||||
user:*) eval "zle -N orig-$cur_widget ${widgets[$cur_widget]#*:}; \
|
||||
_zsh_highlight_widget_$cur_widget() { builtin zle orig-$cur_widget -- \"\$@\" && _zsh_highlight }; \
|
||||
zle -N $cur_widget _zsh_highlight_widget_$cur_widget";;
|
||||
|
||||
# Completion widget: override and rebind old one with prefix "orig-".
|
||||
completion:*) eval "zle -C orig-$cur_widget ${${widgets[$cur_widget]#*:}/:/ }; \
|
||||
_zsh_highlight_widget_$cur_widget() { builtin zle orig-$cur_widget -- \"\$@\" && _zsh_highlight }; \
|
||||
zle -N $cur_widget _zsh_highlight_widget_$cur_widget";;
|
||||
|
||||
# Builtin widget: override and make it call the builtin ".widget".
|
||||
builtin) eval "_zsh_highlight_widget_$cur_widget() { builtin zle .$cur_widget -- \"\$@\" && _zsh_highlight }; \
|
||||
zle -N $cur_widget _zsh_highlight_widget_$cur_widget";;
|
||||
|
||||
# Default: unhandled case.
|
||||
*) echo "zsh-syntax-highlighting: unhandled ZLE widget '$cur_widget'" >&2 ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
# Load highlighters from directory.
|
||||
#
|
||||
# Arguments:
|
||||
# 1) Path to the highlighters directory.
|
||||
_zsh_highlight_load_highlighters()
|
||||
{
|
||||
# Check the directory exists.
|
||||
[[ -d "$1" ]] || {
|
||||
echo "zsh-syntax-highlighting: highlighters directory '$1' not found." >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
# Load highlighters from highlighters directory and check they define required functions.
|
||||
local highlighter highlighter_dir
|
||||
for highlighter_dir ($1/*/); do
|
||||
highlighter="${highlighter_dir:t}"
|
||||
[[ -f "$highlighter_dir/${highlighter}-highlighter.zsh" ]] && {
|
||||
. "$highlighter_dir/${highlighter}-highlighter.zsh"
|
||||
type "_zsh_highlight_${highlighter}_highlighter" &> /dev/null &&
|
||||
type "_zsh_highlight_${highlighter}_highlighter_predicate" &> /dev/null || {
|
||||
echo "zsh-syntax-highlighting: '${highlighter}' highlighter should define both required functions '_zsh_highlight_${highlighter}_highlighter' and '_zsh_highlight_${highlighter}_highlighter_predicate' in '${highlighter_dir}/${highlighter}-highlighter.zsh'." >&2
|
||||
}
|
||||
}
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
# Setup
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
# Try binding widgets.
|
||||
_zsh_highlight_bind_widgets || {
|
||||
echo 'zsh-syntax-highlighting: failed binding ZLE widgets, exiting.' >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
# Resolve highlighters directory location.
|
||||
_zsh_highlight_load_highlighters "${ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR:-${0:h}/highlighters}" || {
|
||||
echo 'zsh-syntax-highlighting: failed loading highlighters, exiting.' >&2
|
||||
return 1
|
||||
}
|
||||
|
||||
# Reset scratch variables when commandline is done.
|
||||
_zsh_highlight_preexec_hook()
|
||||
{
|
||||
_ZSH_HIGHLIGHT_PRIOR_BUFFER=
|
||||
_ZSH_HIGHLIGHT_PRIOR_CURSOR=
|
||||
}
|
||||
autoload -U add-zsh-hook
|
||||
add-zsh-hook preexec _zsh_highlight_preexec_hook 2>/dev/null || {
|
||||
echo 'zsh-syntax-highlighting: failed loading add-zsh-hook.' >&2
|
||||
}
|
||||
|
||||
# Initialize the array of active highlighters if needed.
|
||||
[[ $#ZSH_HIGHLIGHT_HIGHLIGHTERS -eq 0 ]] && ZSH_HIGHLIGHT_HIGHLIGHTERS=(main) || true
|
77
universal/tango.vim
Normal file
77
universal/tango.vim
Normal file
@ -0,0 +1,77 @@
|
||||
" Vim color file
|
||||
" Author: Taylon Silmer <taylonsilva@gmail.com>
|
||||
" Version: 0.1
|
||||
set background=light
|
||||
highlight clear
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
let g:colors_name = "tango"
|
||||
|
||||
if exists("g:bg_tango") && g:bg_tango == 1
|
||||
highlight Normal gui=none guifg=#2e3436 guibg=#eeeeec
|
||||
else
|
||||
highlight Normal gui=none guifg=#2e3436 guibg=#ffffff
|
||||
endif
|
||||
|
||||
" Search
|
||||
highlight IncSearch gui=underline guifg=#555753 guibg=#fce94f
|
||||
highlight Search gui=none guifg=#555753 guibg=#fce94f
|
||||
|
||||
" Messages
|
||||
highlight ErrorMsg gui=bold guifg=#eeeeec guibg=#cc0000
|
||||
highlight WarningMsg gui=bold guifg=#eeeeec guibg=#cc0000
|
||||
highlight ModeMsg gui=bold guifg=#2e3436 guibg=bg
|
||||
highlight MoreMsg gui=none guifg=#204a87 guibg=bg
|
||||
highlight Question gui=none guifg=#4e9a06 guibg=bg
|
||||
|
||||
" Split area
|
||||
highlight StatusLine gui=none guifg=#eeeeec guibg=#3465a4
|
||||
highlight StatusLineNC gui=none guifg=#eeeeec guibg=#729fcf
|
||||
highlight VertSplit gui=none guifg=#d3d7cf guibg=#204a87
|
||||
highlight WildMenu gui=none guifg=#2e3436 guibg=#eeeeec
|
||||
|
||||
" Diff
|
||||
highlight DiffText gui=bold guifg=#2e3436 guibg=#ad7fa8
|
||||
highlight DiffChange gui=none guifg=bg guibg=#ad7fa8
|
||||
highlight DiffDelete gui=none guifg=bg guibg=#eeeeec
|
||||
highlight DiffAdd gui=none guifg=#3465a4 guibg=#eeeeec
|
||||
|
||||
" Cursor
|
||||
highlight Cursor gui=none guifg=#eeeeec guibg=#729fcf
|
||||
highlight MatchParen gui=bold guifg=#eeeeec guibg=#ce5c00
|
||||
|
||||
" Fold
|
||||
highlight Folded gui=none guifg=#555753 guibg=#eeeeec
|
||||
highlight FoldColumn gui=none guifg=#888a85 guibg=#eeeeec
|
||||
|
||||
" Popup Menu
|
||||
highlight PMenu guifg=#eeeeec guibg=#555753
|
||||
highlight PMenuSel guifg=#2e3436 guibg=#eeeeec
|
||||
highlight PMenuSBar guifg=#2e3436 guibg=#eeeeec
|
||||
highlight PMenuThumb guifg=#2e3436 guibg=#eeeeec
|
||||
|
||||
" Other
|
||||
highlight Directory gui=none guifg=#204a87 guibg=bg
|
||||
highlight LineNr gui=none guifg=#888a85 guibg=#eeeeec
|
||||
highlight NonText gui=none guifg=#555753 guibg=#eeeeec
|
||||
highlight SpecialKey gui=none guifg=#75507b guibg=bg
|
||||
highlight Title gui=bold guifg=#3465a4 guibg=bg
|
||||
highlight Visual gui=none guifg=#555753 guibg=#eeeeec
|
||||
|
||||
" Syntax group
|
||||
highlight Comment gui=none guifg=#888a85 guibg=bg
|
||||
highlight Constant gui=bold guifg=#cc0000 guibg=bg
|
||||
highlight Error gui=none guifg=#a40000 guibg=#cc0000
|
||||
highlight SpellBad term=underline gui=undercurl guisp=#ef2929
|
||||
highlight Identifier gui=none guifg=#3465a4 guibg=bg
|
||||
highlight Ignore gui=none guifg=bg guibg=bg
|
||||
highlight PreProc gui=none guifg=#75507b guibg=bg
|
||||
highlight Special gui=none guifg=#75507b guibg=bg
|
||||
highlight Statement gui=none guifg=#c4a000 guibg=bg
|
||||
highlight Todo gui=bold guifg=#ef2929 guibg=bg
|
||||
highlight Type gui=none guifg=#4e9a06 guibg=bg
|
||||
highlight Underlined gui=none guifg=#3465a4 guibg=bg
|
||||
highlight String gui=none guifg=#a40000 guibg=bg
|
||||
highlight Number gui=none guifg=#3465a4 guibg=bg
|
Reference in New Issue
Block a user