GithubHelp home page GithubHelp logo

steamship's Introduction

Steamship Prompt

A customizable prompt for Bourne-compatible shells. This project is inspired by Spaceship for zsh but is for older breeds of Bourne shells, e.g., ksh, bash, dash, and POSIX sh, hence "Steamship".

Features

Steamship is a prompt that shows useful information relevant to the current directory and login session.

  • Host and user display if needed
  • git repository status
  • Container status
  • tmux session

Installation

Installing Steamship is as easy as cloning the repository and then sourcing Steamship in your shell configuration file.

  1. Clone this repository somewhere, for example to $HOME/.local/share/steamship.
$ mkdir -p "$HOME/.local/share"
$ git clone --depth=1 https://github.com/johnnylam88/steamship.git "$HOME/.local/share/steamship"
  1. Source Steamship in your shell configuration file.
# Insert this snippet into ~/.bashrc or ~/.kshrc.
#
# Older shells may need to set the Steamship root.
#STEAMSHIP_ROOT="$HOME/.local/share/steamship"
source "$HOME/.local/share/steamship/steamship.sh

Configuration

Steamship can be used after installation with zero configuration, but you can customize the shell prompt to fit your personal workflow.

Create configuration file

Steamship will automatically source the first configuration file found, if it exists:

  • ${SPACESHIP_CONFIG}
  • $HOME/.steamshiprc
  • $HOME/.config/steamship.sh
  • $HOME/.config/steamship/steamship.sh

The file must be a valid shell script.

Customize the prompt

Here is an example configuration file:

# Start with the ASCII theme to avoid using Unicode (default is 'starship')
steamship theme ascii

# show timestamp (default is 'false')
STEAMSHIP_TIMESTAMP_SHOW=true

# always show the username (default is 'needed')
STEAMSHIP_USER_SHOW=always

Contribute

Code contributions and bug reports are welcome on the GitHub project page.

steamship's People

Contributors

johnnylam88 avatar

Watchers

 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.