Skip to content

NOname-awa/gxy-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

中文文档

This repository provides the gxy-theme for Bash, Fish, Nushell, Pwsh, Xonsh, and Zsh.

gxy-theme

Prerequisites:

  • git
  • nerd font

Prompt Composition

  • This theme uses a two-line prompt. The top line includes the shell name, username, path, git branch, and status code (Nushell also show shells info). The bottom line is for command input.
  • This theme uses to separate the path segments. Zsh, Pwsh, Xonsh, and Fish will have simplified path displays.

Installation and Configuration

Bash

  1. Copy the bash-theme prompt_custom function and the PROMPT_COMMAND=prompt_custom line to your ~/.bashrc.
  2. Run source ~/.bashrc or re-enter bash.

Zsh

  1. Install oh-my-zsh.
  2. Copy the zsh-theme file to the ~/.oh-my-zsh/themes/ directory, renaming it to gxy.zsh-theme.
  3. Edit your ~/.zshrc file to set the theme: ZSH_THEME="gxy"
  4. Run source ~/.zshrc or re-enter zsh.

Fish

  1. Copy the fish-theme fish_prompt function content to ~/.config/fish/functions/fish_prompt.fish.
  2. Reload the Fish configuration or re-enter Fish.

Xonsh

  1. Copy the xonsh-theme content to ~/.xonshrc.
  2. Reload the Xonsh configuration or re-enter Xonsh.

PowerShell

  1. Copy the pwsh-theme content to the Pwsh configuration file, typically $PROFILE.
  2. Reload the Pwsh configuration or re-enter Pwsh.

Nushell

  1. Copy the nu-theme content to ~/.config/nushell/config.nu.
  2. Reload the Nushell configuration or re-enter Nushell.

Example Screenshots

bash zsh fish xonsh pwsh nu

Contributing

Contributions and suggestions are welcome! Feel free to contact me by submitting a PR or an Issue.

License

This project is licensed under the MIT License. For more details, see the LICENSE file.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published