Skip to content

Commit 013ad0b

Browse files
committed
[Oh My Zsh] Update manala users template
1 parent 7ec6b9e commit 013ad0b

2 files changed

Lines changed: 18 additions & 26 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
### Fixed
1414
- [Apt] Handle repository types properly
1515
- [Apt] Fix signatures for `default`, `security`, `security_src`, `updates`, `updates_src`, `backports`, and `backports_sloppy` repositories
16+
- [Oh My Zsh] Update manala users template
1617

1718
## [5.1.0] - 2025-10-15
1819
### Added

roles/ohmyzsh/templates/users/manala/.zshrc.j2

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
{%- set config = item.config | default({}) -%}
22

33
# If you come from bash you might have to change your $PATH.
4-
{{ config | manala.roles.zsh_config_parameter('export PATH', comment='# export PATH=$HOME/bin:/usr/local/bin:$PATH') }}
4+
{{ config | manala.roles.zsh_config_parameter('export PATH', comment='# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH') }}
55

6-
# Path to your oh-my-zsh installation.
6+
# Path to your Oh My Zsh installation.
77
{{ config | manala.roles.zsh_config_parameter('export ZSH', default=manala_ohmyzsh_dir) }}
88

9-
# Ensure per-user cache
10-
{{ config | manala.roles.zsh_config_parameter('ZSH_CACHE_DIR', default='$HOME/.oh-my-zsh/cache') }}
11-
12-
if [[ ! -d $ZSH_CACHE_DIR ]]; then
13-
mkdir -p $ZSH_CACHE_DIR
14-
fi
15-
169
# Set name of the theme to load --- if set to "random", it will
17-
# load a random theme each time oh-my-zsh is loaded, in which case,
10+
# load a random theme each time Oh My Zsh is loaded, in which case,
1811
# to know which specific one was loaded, run: echo $RANDOM_THEME
1912
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
2013
{{ config | manala.roles.zsh_config_parameter('ZSH_THEME', default='robbyrussell') }}
@@ -32,14 +25,13 @@ fi
3225
# Case-sensitive completion must be off. _ and - will be interchangeable.
3326
{{ config | manala.roles.zsh_config_parameter('HYPHEN_INSENSITIVE', default=true, comment=true) }}
3427

35-
# Uncomment the following line to disable bi-weekly auto-update checks.
36-
{{ config | manala.roles.zsh_config_parameter('DISABLE_AUTO_UPDATE', default=true, comment=true) }}
37-
38-
# Uncomment the following line to automatically update without prompting.
39-
{{ config | manala.roles.zsh_config_parameter('DISABLE_UPDATE_PROMPT', default=true, comment=true) }}
28+
# Uncomment one of the following lines to change the auto-update behavior
29+
# zstyle ':omz:update' mode disabled # disable automatic updates
30+
# zstyle ':omz:update' mode auto # update automatically without asking
31+
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
4032

4133
# Uncomment the following line to change how often to auto-update (in days).
42-
{{ config | manala.roles.zsh_config_parameter('export UPDATE_ZSH_DAYS', default=13, comment=true) }}
34+
# zstyle ':omz:update' frequency 13
4335

4436
# Uncomment the following line if pasting URLs and other text is messed up.
4537
{{ config | manala.roles.zsh_config_parameter('DISABLE_MAGIC_FUNCTIONS', default=true, comment=true) }}
@@ -95,29 +87,28 @@ source $ZSH/oh-my-zsh.sh
9587
# if [[ -n $SSH_CONNECTION ]]; then
9688
# export EDITOR='vim'
9789
# else
98-
# export EDITOR='mvim'
90+
# export EDITOR='nvim'
9991
# fi
10092

10193
# Compilation flags
102-
{{ config | manala.roles.zsh_config_parameter('export ARCHFLAGS', default='-arch x86_64', comment=true) }}
103-
104-
# Set personal aliases, overriding those provided by oh-my-zsh libs,
105-
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
106-
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
94+
{{ config | manala.roles.zsh_config_parameter('export ARCHFLAGS', default='-arch $(uname -m)', comment=true) }}
95+
96+
# Set personal aliases, overriding those provided by Oh My Zsh libs,
97+
# plugins, and themes. Aliases can be placed here, though Oh My Zsh
98+
# users are encouraged to define aliases within a top-level file in
99+
# the $ZSH_CUSTOM folder, with .zsh extension. Examples:
100+
# - $ZSH_CUSTOM/aliases.zsh
101+
# - $ZSH_CUSTOM/macos.zsh
107102
# For a full list of active aliases, run `alias`.
108103
{{ config | manala.roles.zsh_config_parameter('alias', comment='#\n# Example aliases\n# alias zshconfig="mate ~/.zshrc"\n# alias ohmyzsh="mate ~/.oh-my-zsh"') }}
109104

110105
{{ config | manala.roles.zsh_config(exclude=[
111106
'export PATH',
112107
'export ZSH',
113-
'ZSH_CACHE_DIR',
114108
'ZSH_THEME',
115109
'ZSH_THEME_RANDOM_CANDIDATES',
116110
'CASE_SENSITIVE',
117111
'HYPHEN_INSENSITIVE',
118-
'DISABLE_AUTO_UPDATE',
119-
'DISABLE_UPDATE_PROMPT',
120-
'UPDATE ZSH_DAYS',
121112
'DISABLE_MAGIC_FUNCTIONS',
122113
'DISABLE_LS_COLORS',
123114
'DISABLE_AUTO_TITLE',

0 commit comments

Comments
 (0)