fix: do not hardcode user in the config files
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
49a034d6d7
commit
888a816c5f
3 changed files with 8 additions and 8 deletions
|
@ -57,7 +57,7 @@
|
|||
signingkey = {{ gpg_signingkey }}
|
||||
|
||||
[includeIf "gitdir:~/git/github.com/packit/"]
|
||||
path = /home/mfocko/git/github.com/packit/.gitconfig
|
||||
path = /home/{{ target_user }}/git/github.com/packit/.gitconfig
|
||||
|
||||
[includeIf "gitdir:~/git/gitlab.fi.muni.cz/"]
|
||||
path = /home/mfocko/git/gitlab.fi.muni.cz/.gitconfig
|
||||
path = /home/{{ target_user }}/git/gitlab.fi.muni.cz/.gitconfig
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
dest: ~/.oh-my-zsh/custom/plugins/zsh-aliases-exa
|
||||
update: no
|
||||
|
||||
- name: Install the config
|
||||
ansible.builtin.copy:
|
||||
src: files/zshrc
|
||||
- name: Create the config
|
||||
ansible.builtin.template:
|
||||
src: templates/zshrc
|
||||
dest: ~/.zshrc
|
||||
mode: 0600
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export ZSH="/home/mfocko/.oh-my-zsh"
|
||||
export ZSH="/home/{{ target_user }}/.oh-my-zsh"
|
||||
|
||||
ENABLE_CORRECTION=true
|
||||
plugins=(git common-aliases history systemd sudo zsh-autosuggestions zsh-syntax-highlighting eza fzf direnv taskwarrior zoxide)
|
||||
|
@ -42,8 +42,8 @@ gpg_for_ssh
|
|||
if [[ $(command -v direnv 2> /dev/null) ]]; then
|
||||
eval "$(direnv hook zsh)";
|
||||
fi
|
||||
if [ -e /home/mfocko/.nix-profile/etc/profile.d/nix.sh ]; then
|
||||
. /home/mfocko/.nix-profile/etc/profile.d/nix.sh;
|
||||
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
|
||||
. $HOME/.nix-profile/etc/profile.d/nix.sh;
|
||||
fi # added by Nix installer
|
||||
|
||||
### Rust ###
|
Loading…
Reference in a new issue