Giter Site home page Giter Site logo

.shrc.d's Introduction

About

This repository contains my current MirBSD shell (mksh) configuration files, structured in such a way that allows for ease of portability.

While not strictly supported, there is an effort to maintain backwards compatibility with ksh93, and as such, should work for the most part. I have not found any problems whilst using ksh93 with the provided configuration; this is mostly done by checking the value of $KSH_VERSIONโ€”no guarantee is made outside of this.

Local modifications, as indicated by a .local suffix are intended for personal environments, that may not be the default options on other systems.

For setting defaults based on the type of underlying operating-system, place files in host/$(uname -s)/, e.g. host/Linux/foo-0. Any corresponding files will be loaded upon shell initialization.

Setup

Copy .mkshrc to your home directory and create a symlink to .kshrc, whilst ensuring that ~/.shrc.d exists too.

$ cp -fv .mkshrc ~ ; mkdir ~/.shrc.d
$ (cd ~ || return ; ln -sf .mkshrc .kshrc)

Lastly, copy the remaining shell configuration over.

$ cp -frv [0-9]-* host ~/.shrc.d

And like that, you are done!

Alternatively, git clone this repository into ~/.shrc.d, just make sure you have copied .mkshrc and created an accompanying symlink to .kshrc in your home directory.

You can of course just clone to another location such as ~/.config/mksh and create a symlink from ~/.shrc.d. The choice is up to you.

$ cd ~ || return
$ ln -sf .config/mksh .shrc.d
$ ln -sf .config/mksh/.mkshrc .mkshrc
$ ln -sf .config/mksh/.mkshrc .kshrc

Oneliner

Quick n' dirty oneliner to skip all the noise.

git clone https://github.com/lcook/.shrc.d ~/.shrc.d;cd ~ && for f in .mkshrc .kshrc .shrc;do ln -sf .shrc.d/.mkshrc $f;done||return

License

BSD 2-Clause

.shrc.d's People

Contributors

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