carthik / pltraining-userprefs

Set user preferences for shell and editor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

userprefs

A simple module that allows users to choose their default editor and default shell.

About

This will ensure that the proper packages are installed, the configuration files that enable syntax highlighting are written, helpful shell aliases are enabled, and the default editor and shell are set.

Example usage:

Customizing the environment:

    class { 'userprefs':
      shell  => 'zsh',  # allowed values: bash/zsh
      editor => 'vim',  #   Linux: emacs/nano/vim
                          Windows: gvim/atom/sublimetext/npp
    }

Classifying a node with classroom defaults:

    include userprefs::defaults

Classifying a node with vim defaults:

    class { 'userprefs::vim':
      monochrome  => true,  # this turns off syntax highlighting, allowed values: true/false
      line_number => false, # this turns off line numbering, allowed values: true/false
    }

Contact

ben.ford@puppetlabs.com
js@puppetlabs.com
education@puppetlabs.com

About

Set user preferences for shell and editor.

License:Apache License 2.0


Languages

Language:Vim Script 42.5%Language:Emacs Lisp 27.6%Language:Puppet 24.9%Language:Shell 3.0%Language:HTML 1.9%Language:Pascal 0.1%