博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ZSH主题
阅读量:5020 次
发布时间:2019-06-12

本文共 5810 字,大约阅读时间需要 19 分钟。

All the current themes can be found in the themes/ directory in the oh-my-zsh distribution.

In order to enable a theme, set ZSH_THEME to the name of the theme in your ~/.zshrc, before sourcing Oh My Zsh; for example: ZSH_THEME=robbyrussell

If you do not want any theme enabled, just set ZSH_THEME to blank: ZSH_THEME=""

Here is a collection of screenshots and descriptions of themes that have been contributed to Oh My Zsh. There are some missing from this page. If you want to add or edit descriptions, see the at the bottom of this page.

The Themes

robbyrussell

the (default) that Robby uses


The rest of the themes, in alphabetical order:

af-magic

afowler

agnoster

Shown with and Powerline-patched Meslo 14pt in .

Additional setup:

  • Install one of the or for the special characters.
  • Optionally set DEFAULT_USER to your regular username followed by prompt_context(){} in ~/.zshrc to hide the “user@hostname” info when you’re logged in as yourself on your local machine.

alanpeabody

amuse

Shown in the screenshot with tmux and the (you might need to install one of the for it to look the same).

arrow

aussiegeek

avit

awesomepanda

bira

blinks

Additional setup: Set up .

bureau

To use: In the right prompt you see git status and (if you use nvm) the Node.js version. (I’m using the color scheme in this screenshot.)

candy

clean

cloud

crunch

cypher

dallas

darkblood

daveverwer

dieter

Additional setup: Get this small if you don’t have it yet. (Fix was into robbyrussell/oh-my-zsh on 2011-01-08.)

dogenpunk

dpoggi

eastwood

evan

a minimal prompt

fishy

The fish shell prompt with git support

flazz

Has git and vi-command mode support (when enabled)

frisk

funky

it’s funky…

gallifrey

gallois

garyblessington

gentoo

geoffgarside

gianu

gnzh

imajes

jnrowe

jreese

jtriley

juanghurtado

junkfood

Totally ripped off Dallas theme

kafeitu

kardan

kennethreitz

kolo

kphoen

lambda

linuxonly

(As the name states, this only works on linux.)

lukerandall

macovsky

maran

mh

michelebologna

miloshadzic

minimal

mortalscumbag

also tells you when logged in over ssh

mrtazz

muse

nanotech

nebirhos

nicoulaj

norm

philips

pygmalion

(Shown with .)

risto

rixius

rkj-repos

sammy

simple

smt

sorin

sporty_256

sporty_256

steeef

sunaku

exit status if nonzero, status & branch if git, pwd always

sunrise

Lightweight prompt with exit status and git status consistent mode line

superjarin

git status, git branch, and ruby, all in a no muss, no fuss prompt! Works with RVM, chruby, and rbenv (just activate the corresponding plugin).

suvash

username, host, directory, git branch and rvm gemset

terminalparty

There is a party every day.

theunraveler

Minimal, informative when it needs to be.

tjkirch

Based on dst, plus a lightning bolt and return codes.

tonotdo

trapd00r

wedisagree

Instructions to further customize the theme are available as comments in the theme file.

wezm

wuffers

xiong-chiamiov

xiong-chiamiov-plus

ys

Clean, simple, compatible and meaningful.Tested on Linux, Unix and Windows under ANSI colors. It is recommended to use with a dark background.

()

ys-zsh-theme

zhann

More themes

You can find more themes .

(Don’t) Send us your theme! (for now)

We have enough themes for the time being. Please fork the project and add on in there, you can let people know how to grab it from there.

Or put it gist and list it in .

Theme Description Format

The theme descriptions in this page should contain:

  • The name of the theme
  • A screenshot
    • (Preferably in PNG format, and hosted on a GitHub issue)
  • Instructions for any configuration besides setting ZSH_THEME in ~/.zshrc
    • For example, font installation, terminal color scheme configuration, or optional environment variables that affect the theme
  • Any dependencies outside Oh My Zsh

We use manually-constructed screenshots because some of the themes require additional terminal configuration to look their best, and so the code in example shell sessions can showcase the theme's features. There is also a separate collection of automatically-generated screenshots linked .

Uploading screenshots to GitHub

We host all the screenshot images on GitHub itself, to avoid external dependencies on other hosting services or URLs that might break. We use issue attachments which will get them in to githubusercontent.com. (It's also possible to store image files in a GitHub wiki itself, but this requires you to have Contributor permissions for the repo whose Wiki you're editing. The issue-attachment method can be done by anybody.)

To upload an image to GitHub, just drag and drop it into the text area on an issue you're editing. You can use issue #3619 for this to avoid spamming people with notifications about new issues. The uploaded image will turn in to a link in Markdown format. Edit that to use the special [![name](image-url)](image-url) syntax to make the image link to itself, so people can open the image in a new tab to view it full size. (Images inside a wiki page may be displayed scaled down.)

For example:

[![wezm](https://cloud.githubusercontent.com/assets/1441704/6315419/915f6ca6-ba01-11e4-95b3-2c98114b5e5c.png)](https://cloud.githubusercontent.com/assets/1441704/6315419/915f6ca6-ba01-11e4-95b3-2c98114b5e5c.png)

If you have several uploaded screenshot links you need to convert to that self-linked syntax, you can use this sed command on the markdown file to programmatically convert them.

sed 's/^!\[[a-zA-Z0-9 -]*\](\([^)]*\)) *$/[&](\1)/'

Screenshots of Each Theme

(as of 2013-04-10), in OS X Terminal.app using Consolas 13pt and Pro color scheme, inside a folder containing both a git and a mercurial repo. Each screenshot displays the output of the pwd command. It has shortcomings (plugins for some themes might be missing), but it offers a convenient and uniform overview of each theme. Plugins used were battery, rvm, hg prompt, among others.

转载于:https://www.cnblogs.com/chenyangqit/p/11571228.html

你可能感兴趣的文章
display:flow-root
查看>>
判读字符串是否为空的全局宏-分享
查看>>
22-reverseString-Leetcode
查看>>
Centos 开机自动联网
查看>>
cocos2dx使用lua和protobuf
查看>>
HDOJ 5630 Rikka with Chess
查看>>
netcore2.1 在后台运行一个任务
查看>>
DOCKER 从入门到放弃(五)
查看>>
Python 多线程学习
查看>>
获取NVIDIA显卡的温度
查看>>
Dijkstra算法
查看>>
Deep Learning 9: Performance
查看>>
面试题61 把二叉树打印成多行
查看>>
第二章 Vue快速入门--20 品牌案例-完成品牌列表的添加功能+ 21 品牌案例-根据Id完成品牌的删除...
查看>>
Codeforces Round #327 (Div. 2)
查看>>
ODAC(V9.5.15) 学习笔记(三)TOraSession(2)
查看>>
SQL中的replace函数
查看>>
java中的类型安全问题-Type safety: Unchecked cast from Object to ...
查看>>
如何解决最后一个尾注引用显示与致谢混为一谈的问题-下
查看>>
css文本样式text、字体样式font
查看>>