Giter Site home page Giter Site logo

steeef's Introduction

steeef

A customizable version of steeef's theme.

What does it show?

  • "user at hostname in working directory"
  • Git branch name, or commit short hash when in 'detached HEAD' state. Also, unindexed, indexed, and untracked indicators, and an optional stashed indicator (must be customized, see below).
  • Python venv indicator.

Settings

This theme can be customized with the following environment variables. If the variable is not defined, the respective default value is used. There are default colors for 256-color terminals (or otherwise).

Variable Description Default value
USER_COLOR User name color 135 (or magenta)
HOST_COLOR Host name color 166 (or yellow)
PWD_COLOR Working directory color 118 (or green)
BRANCH_COLOR Git branch name color 81 (or cyan)
UNINDEXED_COLOR Git unindexed color 166 (or yellow)
UNINDEXED_IND Git unindexed indicator
INDEXED_COLOR Git indexed color 118 (or green)
INDEXED_IND Git indexed indicator
UNTRACKED_COLOR Git untracked color 161 (or red)
UNTRACKED_IND Git untracked indicator
STASHED_COLOR Git stashed color
STASHED_IND Git stashed indicator

The git stashed indicator will not be shown unless defined.

Requirements

Requires Zim's git-info module to show git information.

steeef's People

Contributors

bandali0 avatar caedumil avatar ericbn avatar eriner avatar mkrauser avatar nshtg avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

frost sun11

steeef's Issues

Github Password Authentication Removed

  • [YES] I've checked the existing issues and I'm not duplicating a report.
  • [YES] I'm using the latest version of zimfw.
  • [YES] I've checked the Changelog and I'm not being affected by documented changes.
  • [YES] I've checked the 📢 Announcements and I'm not being affected by announced changes.
  • [YES] I was able to reproduce the issue with a clean installation of Zim.
  • [YES] I've pasted the output of zimfw info below.

Describe the bug
As GitHub removed Password authentication, cannot zimfw install steeef theme.

Steps to reproduce
The fist 4 steps restart the shell with a clean installation of Zim in a temporary directory.
Use exec zsh when restarting the terminal or restarting the shell is needed.

  1. cd ${$(mktemp -d):A}
  2. ZDOTDIR=${PWD} HOME=${PWD} ZIM_HOME=${PWD}/.zim exec zsh
  3. curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh
  4. exec zsh
  5. Unable to install steeef using zimfw install

Current behavior
When you try to install the steeef theme, it asks for github username and password. However because Github removed support for password authentication, the installation fails.

Expected behavior
Update the theme to use Github personal access token instead.

Screenshots
Screen Shot 2021-10-21 at 10 44 27 PM

zimfw info

zimfw version: 1.5.0 (built at 2021-08-10 14:52:54 UTC, previous commit is 35cd6f5)
ZIM_HOME:      /Users/.../.zim
Zsh version:   5.8
System info:   Darwin something2s-MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64

Show domain in steeef.zsh-theme

Would it be possible to do a quick hack to display domain after the host on steeef theme ?
I like this theme so much, but I have multiple VM with the same name bur on different domain, so I got the same result when I connect to them :

user at host in /home/....#

I would like to append the domain to show
user at host.domain1 in /home/....#
user at host.domain2 in /home/....#

I know how to do that manually but would it be possible to retrieve it from resolv.conf for example ?

I would like to avoid extra ms to display / parse and more importantly not sending anything to the network.

If you have any suggestions :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.