Giter VIP home page Giter VIP logo

swc-shell-split-window's Introduction

Software Carpentry Shell Split Window

This is a script to split window for the shell lesson.

License

Under MIT.

Requirement

Use

$ ./swc-shell-split-window.sh

Various environment variables affect the behaviour of the script, these are:

  • LOG_FILE: The location where the log file will be stored (default: /tmp/swc-split-log-file)
  • HISTORY_LINES: How many lines of history to be shown (default: 5)
  • SESSION: The name of the session (default: swc)
  • BGCOLOR: Background colour of the session

These can be used with, e.g.:

LOG_FILE=/tmp/log HISTORY_LINES=10 ./swc-shell-split-window.sh

Notes

Mouse scrolling

To enable mouse scrolling of the output edit $HOME/.tmux.conf to include the line:

setw -g mouse on

Background colours

You may wish to set the background color of a session in case you have to role play to different people. This comes in handy if, for instance, you are teaching about Git Conflicts.

To do so, you would want to start to sessions in separate terminal windows with, e.g.:

LOG_FILE=/tmp/session1 BGCOLOR=12 ./swc-shell-split-window.sh
LOG_FILE=/tmp/session2 BGCOLOR=90 ./swc-shell-split-window.sh

You can print all the available colours using:

for i in {0..255}; do
    printf "\x1b[38;5;${i}mcolour${i}\x1b[0m\n"
done

Screenshot

Screenshot of swc-shell-split-window

swc-shell-split-window's People

Contributors

anelda avatar dmgt avatar r-barnes avatar rgaiacs avatar wking 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.