GithubHelp home page GithubHelp logo

shell_config's Introduction

README

  • This project is a starting point for new shell users in zsh, where usually the user interface is pretty boring compare with the default bash in ubuntu for instance.

Environment

  • OS: macOS Monterrey
  • Shell: /bin/zsh

Shell config file

The config file has comments that helps to understand the first basic steps to make the zsh shelllooks beautiful.
Currently, the config file just has the basics to change a bit the PS1 variable and color it.

To make the variable PROMPT or the so called PS1 more understandeble, here it goes some tips:
Special sequences are used to wrapped a portion of the promptto have some features, i.e the sequence %B ... some commands ... %b will set more commandsto be BOLD. Be aware that the beginnning of a sequence starts with the capital letter and finishes with lowercase

Dynamic prompt elements

Element Function Comment
%n Username that is logged in
%m Hostname until the first dot "." If a number is place after %m, it tells how many dots should be included
%M Entire hostname
%d Current directory If a number is place after %, tells how much of the path will be displayed
%~ Current directory uses "~" if user is at home directory
%l The TTY device using i.e /dev/tty
  • Color managment
Start Stop Effect
%B %b BOLD
%U %u Underline
%S %s ==Highlighted==
%F %f Change foregroung color
%K %k Change backgorund color

There are a lot of turorials out there about customizing the PROMPT. Just browse for something like How to customize sheel prompt Also, the file has added what I found to colour the output of the grepcommand and, to enable autocompletion when using git.

Hope you enjoy it

shell_config's People

Contributors

migos46 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.