Build zshrc

This commit is contained in:
Jake Howard 2017-08-12 17:43:07 +01:00
parent ca6cacc517
commit 64156e7dda
Signed by: jake
GPG key ID: 57AFB45680EDD477
6 changed files with 24 additions and 7 deletions

View file

@ -28,6 +28,3 @@ COMPLETION_WAITING_DOTS="true"
alias src="source $HOME/.zshrc" alias src="source $HOME/.zshrc"
export DOTFILES="$HOME/.dotfiles"
source $DOTFILES/bash/base.sh

View file

@ -4,10 +4,6 @@ case $- in
*) return;; *) return;;
esac esac
source $DOTFILES/bash/catfish.sh
source $DOTFILES/bash/javascript.sh
source $DOTFILES/bash/applications.sh
[ -s "$DOTFILES/bash/private.sh" ] && source "$DOTFILES/bash/private.sh" # load private stuff
# Export some variables # Export some variables
export ANDROID_HOME=/opt/android-sdk export ANDROID_HOME=/opt/android-sdk

View file

@ -1,2 +1,26 @@
class shell { class shell {
$zshrc = "/home/jake/.zshrc"
$files = [
"puppet:///modules/shell/.zshrc",
"puppet:///modules/shell/base.sh",
"puppet:///modules/shell/applications.sh",
"puppet:///modules/shell/catfish.sh",
"puppet:///modules/shell/javascript.sh"
];
concat {"zshrc":
path => $zshrc,
owner => "jake",
group => "users",
mode => "0644",
ensure_newline => true
}
$files.each |String $file| {
concat::fragment {"zshrc concat $file":
target => $zshrc,
source => $file
}
}
} }