diff --git a/dotfiles.yml b/dotfiles.yml index fad6368..da4e40a 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -12,3 +12,4 @@ - import_tasks: tasks/gnome.yml - import_tasks: tasks/i3.yml - import_tasks: tasks/services.yml + - import_tasks: tasks/shell.yml diff --git a/modules/shell/files/bin/json_format b/files/bin/json_format similarity index 100% rename from modules/shell/files/bin/json_format rename to files/bin/json_format diff --git a/modules/shell/files/global-environment b/files/global-environment similarity index 100% rename from modules/shell/files/global-environment rename to files/global-environment diff --git a/modules/shell/files/tmux.conf b/files/tmux.conf similarity index 100% rename from modules/shell/files/tmux.conf rename to files/tmux.conf diff --git a/modules/shell/files/.zshrc b/files/zshrc/.zshrc similarity index 82% rename from modules/shell/files/.zshrc rename to files/zshrc/.zshrc index fb94bda..4fcc127 100644 --- a/modules/shell/files/.zshrc +++ b/files/zshrc/.zshrc @@ -29,3 +29,10 @@ export PROMPT="${ret_status} %{$fg_bold[green]%}%n@%m%{$reset_color%}:%{$fg_bold COMPLETION_WAITING_DOTS="true" alias src="source $HOME/.zshrc" + + +{% include "base.sh" %} +{% include "environment.sh" %} +{% include "applications.sh" %} +{% include "catfish.sh" %} +{% include "javascript.sh" %} diff --git a/modules/shell/files/applications.sh b/files/zshrc/applications.sh similarity index 100% rename from modules/shell/files/applications.sh rename to files/zshrc/applications.sh diff --git a/modules/shell/files/base.sh b/files/zshrc/base.sh similarity index 100% rename from modules/shell/files/base.sh rename to files/zshrc/base.sh diff --git a/modules/shell/files/catfish.sh b/files/zshrc/catfish.sh similarity index 100% rename from modules/shell/files/catfish.sh rename to files/zshrc/catfish.sh diff --git a/modules/shell/files/environment.sh b/files/zshrc/environment.sh similarity index 100% rename from modules/shell/files/environment.sh rename to files/zshrc/environment.sh diff --git a/modules/shell/files/javascript.sh b/files/zshrc/javascript.sh similarity index 100% rename from modules/shell/files/javascript.sh rename to files/zshrc/javascript.sh diff --git a/tasks/shell.yml b/tasks/shell.yml new file mode 100644 index 0000000..26910c5 --- /dev/null +++ b/tasks/shell.yml @@ -0,0 +1,34 @@ +- template: + src: ./files/zshrc/.zshrc + dest: /home/jake/.zshrc + mode: 0644 + owner: jake + +- copy: + src: /usr/share/nvm/init-nvm.sh + dest: /home/jake/.nvm/nvm.sh + mode: 0755 + owner: jake + group: users + +- copy: + src: ./files/bin + dest: /home/jake/.bin + mode: 0755 + owner: jake + group: users + directory_mode: true + +- copy: + src: ./files/global-environment + dest: /etc/environment + mode: 0644 + owner: root + group: root + +- copy: + src: ./files/tmux.conf + dest: /home/jake/.tmux.conf + mode: 0755 + owner: jake + group: users