Skip to content

Commit

Permalink
fix: 🚀Adding pwsh profile and starship tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Sep 19, 2024
1 parent 6e80db2 commit c99260c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions roles/pwsh/files/profile.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env pwsh

Invoke-Expression (&starship init powershell)
12 changes: 12 additions & 0 deletions roles/pwsh/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@
- name: "{{ role_name }} | Run Tasks: {{ ansible_distribution }}"
ansible.builtin.include_tasks: "{{ ansible_distribution }}.yml"
when: distribution_config.stat.exists

- name: "{{ role_name }} | Ensure Powershell profile directory exists"
ansible.builtin.file:
path: "{{ ansible_user_dir }}/.config/powershell"
state: directory
mode: "0755"

- name: "{{ role_name }} | Deploy Powershell profile"
ansible.builtin.copy:
dest: "{{ ansible_user_dir }}/.config/powershell/profile.ps1"
src: "profile.ps1"
mode: "0644"
3 changes: 3 additions & 0 deletions roles/starship/files/starship.toml
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@ symbol = " "
disabled = false
bash_indicator = ""
zsh_indicator = ""
powershell_indicator = "󰨊 "
fish_indicator = '󰈺 '
style = 'sky'

[swift]
symbol = ""
Expand Down
3 changes: 1 addition & 2 deletions roles/zsh/files/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ zstyle ':omz:update' mode auto # update automatically without asking
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
Expand Down Expand Up @@ -91,7 +91,6 @@ plugins=(
ssh
starship
terraform
themes
zoxide
zsh-autosuggestions
)
Expand Down

0 comments on commit c99260c

Please sign in to comment.