Skip to content

Commit 496701f

Browse files
committed
❇️ refactor: Chagne all $USER env to whoami
1 parent d1d3695 commit 496701f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/debian-zsh.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -euo pipefail
33

44
# Load .zshenv to get XDG_CONFIG_HOME
55
set +u
6+
# shellcheck disable=SC1091
67
source 'zsh/.zshenv'
78
set -u
89

@@ -20,7 +21,7 @@ bash -c "NO_EDIT=true NO_TUTORIAL=true ZINIT_HOME=${HOME}/.local/share ZINIT_REP
2021

2122
# Change default shell to zsh
2223
echo "Changing default shell to zsh..."
23-
sudo chsh -s "$(which zsh)" "${USER}"
24+
sudo chsh -s "$(which zsh)" "$(whoami)"
2425

2526
# Install zsh dotfiles
2627
echo "Installing zsh dotfiles..."

zsh/.zfunc/reset_zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Reset source directories permissions
44
compaudit | xargs chmod g-w,o-w
5-
compaudit | xargs chown "${USER}"
5+
compaudit | xargs chown "$(whoami)"
66

77
# Remove cached files
88
rm -f "${HOME}/.zcompdump*"

0 commit comments

Comments
 (0)