Coder Social home page Coder Social logo

daudre-vignier-charles / davi.org.zsh Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 118 KB

ZZ, the most effective ZSH environment, for intensive shell user, easy to use and modify.

License: GNU General Public License v3.0

Shell 100.00%
zsh zle-widgets zshrc zle zsh-configuration zshell zsh-framework zshenv zsh-prompt zsh-plugins

davi.org.zsh's Introduction

ZZ - ZSH framework license

Warning: The ZZ framework is a beta version under development. Use it at your own risk.

Index

Introduction

ZZ is a powerful ZSH framework. It is modularly designed to be debugged or modified as easily as possible. It comes with many aliases, functions, ZLE widgets or TUI tools using zsh/curses (zcurses) module. It also comes with a unit test module.

ZZ is designed to make the most of the possibilities of ZSH and to use at least external tools like grep or ls for example.

Feature presentation

ZLE widgets

ZZ comes with ZLE widgets. These are mainly code insertion widget (printf, while loop, conditional statement, etc), Git management widget, or widget enhancing ZLE by giving it IDE functionality (like automatic closing of parentheses, brackets, etc.).

Functions keys :
  • F1 -> Help
  • F2 -> Launcher
  • F3 -> Go to davi.org.zsh git repository
  • F4 -> Sync zsh files with davi.org.zsh git repository.
  • F5 -> Refresh the shell (may generate some bugs)
  • F6 -> Run unit test
  • F10 -> Search
Git :
  • alt + : + : -> git status
  • alt + : + ; -> git add
  • alt + : + ! -> git commit
  • alt + : + l -> git pull $ORIGIN
  • alt + : + * -> git push local/master master
  • alt + : + t -> git tree
Code insertion :
  • alt + ! + e --> printf
  • alt + ! + i --> if
  • alt + ! + w --> while
  • alt + ! + f --> for
  • alt + ! + c --> case
  • alt + ! + ( --> function

Some of the widgets will open TUI interfaces like the widget for git add :

git-tui add

It also comes with a prompt graphically inspired by adam2 that supports Git repositories.

Prompt

It display :

  • line 1 left : job(s), relative path
  • line 1 right : date, tty, shlvl, user@host
  • line 2 left : return of the last command, time of the last command
  • line 2 right : if git repo : branch, status

prompt without git

Prompt while in Git repository :

prompt with git

ztest

ztest is a unittest module for ZSH : ztest

Install

git clone https://github.com/DaudrVignieCharles/davi.org.zsh.git
cd davi.org.zsh
zsh ./init.zsh

The git clone is called the development version. This is used to make the changes that can then be sent to production with the zz.main.propage function.

Your old ZSH environment will be backed up and can be restored if ZZ was uninstalled.

Dependency

davi.org.zsh's People

Contributors

daudre-vignier-charles avatar

Watchers

 avatar  avatar

davi.org.zsh's Issues

fix bug in zz.main.propage

move rsync exclude file outside script
OR
use standard fd files (/dev/stdin does not exist in Android and Solaris), maybe /dev/fd/0 or /proc/self/fd/0

Bug in zc.inputbox

Bad zparseopts options, must ignore unknown options error while parsing

Security issues in zshenv

Do not use an eval, all tests must be hardcoded using an case/esac structure:

  • better control on runtime - easiest debug

Security issue using eval for unnitests : Running unnitest may conduct to an arbitrary code execution.

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.