Skip to content

Commit

Permalink
fix: need .profile to point to .zshrc
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Sep 13, 2024
1 parent 20f408e commit bf1a548
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions roles/zsh/files/.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if [ -n "$BASH_VERSION" -a -n "$PS1" ]; then
# include .zshrc if it exists
if [ -f "$HOME/.zshrc" ]; then
. "$HOME/.zshrc"
fi
fi

1 change: 0 additions & 1 deletion roles/zsh/files/.zprofile

This file was deleted.

6 changes: 6 additions & 0 deletions roles/zsh/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
dest: "{{ ansible_user_dir }}/.zshrc"
mode: "0644"

- name: "Bash | Copy .profile"
ansible.builtin.copy:
src: ".profile"
dest: "{{ ansible_user_dir }}/.profile"
mode: "0644"

- name: "ZSH | Copy custom zsh config"
ansible.builtin.copy:
dest: "{{ ansible_user_dir }}/.config/"
Expand Down

0 comments on commit bf1a548

Please sign in to comment.