Skip to content

Commit

Permalink
Custom changes by NHS England
Browse files Browse the repository at this point in the history
  • Loading branch information
stefaniuk committed Jul 27, 2023
1 parent e9a8fd6 commit f0d6fbe
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Make Ops Tools - Dotfiles
# NHS England Tools - Dotfiles

[![CI/CD Pipeline](https://github.com/make-ops-tools/dotfiles/actions/workflows/cicd-pipeline.yaml/badge.svg)](https://github.com/make-ops-tools/dotfiles/actions/workflows/cicd-pipeline.yaml)
[![CI/CD Pipeline](https://github.com/nhs-england-tools/dotfiles/actions/workflows/cicd-pipeline.yaml/badge.svg)](https://github.com/nhs-england-tools/dotfiles/actions/workflows/cicd-pipeline.yaml)

Dotfiles are configuration files on `*NIX` (including macOS, Windows WSL and Linux) systems and are used to customise the behaviour and appearance of common applications, command-line tools and shell. They can contain various predefined settings, functions, aliases, environment variables and other configurations that affect how programs behave and interact with the system.

Expand All @@ -10,7 +10,7 @@ Here is an _[Unofficial guide to dotfiles on GitHub](https://dotfiles.github.io/

## Table of Contents

- [Make Ops Tools - Dotfiles](#make-ops-tools---dotfiles)
- [NHS England Tools - Dotfiles](#nhs-england-tools---dotfiles)
- [Table of Contents](#table-of-contents)
- [Installation](#installation)
- [Archive your home directory](#archive-your-home-directory)
Expand Down Expand Up @@ -44,10 +44,10 @@ chezmoi archive --output=/tmp/dotfiles-backup.tar.gz

### Apply new configuration

The following instruction clones the [dotfiles](https://github.com/make-ops-tools/dotfiles) repository into the `~/.local/share/chezmoi/` directory and next applies changes accordingly, to your home directory `~/`. During the setup it prompts you to provide configuration options like Git committer name and email address, etc.
The following instruction clones the [dotfiles](https://github.com/nhs-england-tools/dotfiles) repository into the `~/.local/share/chezmoi/` directory and next applies changes accordingly, to your home directory `~/`. During the setup it prompts you to provide configuration options like Git committer name and email address, etc.

```shell
bash -c "$(curl -fsLS get.chezmoi.io)" -- init --apply "make-ops-tools"
bash -c "$(curl -fsLS get.chezmoi.io)" -- init --apply "nhs-england-tools"
```

You can find more information on how `chezmoi` works [here](./docs/guides/chezmoi-usage.md).
Expand Down
44 changes: 44 additions & 0 deletions assets/50-install-corporate-apps.macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash

set -e

# Install corporate apps on macOS
#
# Usage:
# $ source ./commons.sh
# $ ./50-install-corporate-apps.macos.sh
#
# Options:
# REINSTALL=true # Attempts to reinstall the packages, default is `false`
# VERBOSE=true # Show all the executed commands, default is `false`

# ==============================================================================

function main {

# Customise brew execution
export HOMEBREW_NO_AUTO_UPDATE=1
is-arg-true "$REINSTALL" && export install="reinstall --force" || export install="install"

install
}

function install {

# Install office apps
brew $install --cask \
avast-security \
microsoft-office \
microsoft-teams \
slack \
zoom \
||:
}

# ==============================================================================

is-arg-true "$VERBOSE" && set -x

main $*

exit 0
33 changes: 33 additions & 0 deletions assets/50-install-corporate-apps.ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash

set -e

# Install corporate apps on Ubuntu
#
# Usage:
# $ source ./commons.sh
# $ ./50-install-corporate-apps.ubuntu.sh
#
# Options:
# REINSTALL=true # Attempts to reinstall the packages, default is `false`
# VERBOSE=true # Show all the executed commands, default is `false`

# ==============================================================================

function main {

install
}

function install {

:
}

# ==============================================================================

is-arg-true "$VERBOSE" && set -x

main $*

exit 0
2 changes: 1 addition & 1 deletion project.code-workspace
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"folders": [
{
"name": "Make Ops Tools - Dotfiles",
"name": "NHS England Tools - Dotfiles",
"path": "."
}
],
Expand Down

0 comments on commit f0d6fbe

Please sign in to comment.