Update setTimeZone()
This commit is contained in:
parent
87376b1350
commit
4ac1d10118
12
install.sh
12
install.sh
|
@ -78,12 +78,13 @@ generateFstab() {
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeZone() {
|
setTimeZone() {
|
||||||
|
whiptail --msgbox "Now we will set the timezone." 0 0
|
||||||
formatOptions $(ls -l /usr/share/zoneinfo/ | grep '^d' | awk '{printf $9" \n"}' | awk '!/posix/ && !/right/')
|
formatOptions $(ls -l /usr/share/zoneinfo/ | grep '^d' | awk '{printf $9" \n"}' | awk '!/posix/ && !/right/')
|
||||||
timezoneGeneral=$(whiptail --title "Timezone" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3)
|
region=$(whiptail --title "Region" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3)
|
||||||
formatOptions $(ls -l /usr/share/zoneinfo/${timezoneGeneral} | grep -v '^d' | awk '{printf $9" \n"}')
|
formatOptions $(ls -l /usr/share/zoneinfo/${region} | grep -v '^d' | awk '{printf $9" \n"}')
|
||||||
timezoneSpecific=$(whiptail --title "Timezone" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3)
|
city=$(whiptail --title "City" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3)
|
||||||
|
|
||||||
ln -sf /usr/share/zoneinfo/${timezoneGeneral}/${timezoneSpecific} /etc/localtime
|
ln -sf /usr/share/zoneinfo/${region}/${city} /etc/localtime
|
||||||
runInChroot "hwclock --systohc"
|
runInChroot "hwclock --systohc"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,8 +165,7 @@ installLastPrograms() {
|
||||||
sudo pacman -S zsh
|
sudo pacman -S zsh
|
||||||
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
|
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
|
||||||
git clone https://aur.archlinux.org/paru.git
|
git clone https://aur.archlinux.org/paru.git; cd paru; makepkg -si --noconfirm; cd ..; rm -rf paru
|
||||||
cd paru; makepkg -si --noconfirm; cd ..; rm -rf paru
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getDotfiles() {
|
getDotfiles() {
|
||||||
|
|
Loading…
Reference in New Issue