<commit_before># devops-workstation

Configuration for devops workstation. 

Final phase will be to put under puppet control.


## devops .bashrc

- Configures bash prompt to include
    - git - branch 
    - Python environment - working project
    - ruby environment - ruby and gem set versions

- Also adjusts title bar of terminal session to correctly display host
 you are logged in at.


### Example 
````
$ . ./devops-bashrc 
[rails-project]
[ruby-head@rails]


taurus:PROJECTS danny$ workon HPC-Scripts
[HPC-Scripts]
[ruby-head@rails]
[master= 25cfc86]
taurus:devops-workstation danny$ 
```
<commit_msg>some notes about git prompt<commit_after># devops-workstation

Configuration for devops workstation. 

Final phase will be to put under puppet control.


## devops .bashrc

- Configures bash prompt to include
    - git - branch 
    - Python environment - working project
    - ruby environment - ruby and gem set versions

- Also adjusts title bar of terminal session to correctly display host
 you are logged in at.
- You can install git prompt manually if you have an old version of GIT
    - [download git prompt](https://github.com/git/git/raw/master/contrib/completion/git-prompt.sh)

- **Reference Articles**
    - [Shell customizations for python development](http://cewing.github.io/training.codefellows/lectures/day01/shell.html)
    - [rvm](http://sirupsen.com/get-started-right-with-rvm/)
    - [don't reinvent the (git shell prompt) wheel](http://ithaca.arpinum.org/2013/01/02/git-prompt.html)
    - [gitconfig](https://github.com/jamming/dotfiles/blob/master/git/gitconfig)


### Example 
````
$ . ./devops-bashrc 
[rails-project]
[ruby-head@rails]


taurus:PROJECTS danny$ workon HPC-Scripts
[HPC-Scripts]
[ruby-head@rails]
[master= 25cfc86]
taurus:devops-workstation danny$ 
```

{'fraction_non_alphanumeric': 0.1124031007751938, 'fraction_numerical': 0.009966777408637873, 'mean_word_length': 3.7180156657963446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2289784', 'n_tokens_mistral': 629, 'n_tokens_neox': 569, 'n_words': 167}