GithubHelp home page GithubHelp logo

bash-theme's Introduction

Aleksana's bash theme

image

A simple bash theme tailored for my daily use. This theme includes:

  • Nord palette (requires truecolor support)
  • gitstatus prompt
  • Nix shell detection
  • Path shrinking like powerlevel10k
  • Various icons

Make icons display correctly

Install a font with these glyphs supported (paste theme into your terminal to test if works!):

 -> NixOS
 -> Clock
 -> Home
❯ -> Right arrow
 -> Git
↑ -> Up arrow
↓ -> Down arrow
✓ -> Tick
✎ -> Pencil
 -> Warning
 -> Folder

You probably want to install nerd fonts. After that, make sure it's in fontconfig list (fc-list) or set as the default terminal font.

Use gitstatus

Gitstatus is optional. If you are using a FHS compliant distro, just install it. Otherwise, set

GITSTATUS_PLUGIN_PATH=/path/to/your/gitstatus.plugin.sh

If you are using Homemanager, you can set something like

programs.bash.bashrcExtra = 
let
  aleksanaPS1 = pkgs.fetchFromGitHub {
    owner = "Aleksanaa";
    repo = "bash-theme";
    rev = "2d0931cd8dc7f61d769097e8c4674ce8b757ef2a";
    hash = "sha256-5fjMtcn/1DYQT3YFEsbCh6b4SNlc2yEyl74Xm+x6D7o=";
  };
in
''
  export GITSTATUS_PLUGIN_PATH=${pkgs.gitstatus}/share/gitstatus
  source ${aleksanaPS1}/aleksana
'';

bash-theme's People

Contributors

aleksanaa avatar

Watchers

 avatar  avatar

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.