manage global zprofile
This commit is contained in:
parent
8063833950
commit
b9ff7e5953
2 changed files with 13 additions and 0 deletions
9
bundles/zsh/files/zprofile
Normal file
9
bundles/zsh/files/zprofile
Normal file
|
@ -0,0 +1,9 @@
|
|||
# /etc/zsh/zprofile: system-wide .zprofile file for zsh(1).
|
||||
#
|
||||
# This file is sourced only for login shells (i.e. shells
|
||||
# invoked with "-" as the first character of argv[0], and
|
||||
# shells invoked with the -l flag.)
|
||||
#
|
||||
# Global Order: zshenv, zprofile, zshrc, zlogin
|
||||
|
||||
alias s='sudo su - root -s /usr/bin/zsh'
|
|
@ -1,5 +1,9 @@
|
|||
from os.path import join
|
||||
|
||||
files = {
|
||||
'/etc/zsh/zprofile': {},
|
||||
}
|
||||
|
||||
for name, user_config in node.metadata.get('users').items():
|
||||
if user_config.get('shell', None) != '/usr/bin/zsh':
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue