updated zsh install script (auto change)
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
## Changelogs
|
## Changelogs
|
||||||
|
|
||||||
|
## 11 Dec 2023
|
||||||
|
- Changing over to zsh automatically if user opted
|
||||||
|
- If chose to install zsh and have no login manager, zsh auto login will auto start Hyprland
|
||||||
|
|
||||||
## 03 Dec 2023
|
## 03 Dec 2023
|
||||||
- Added kvantum for qt apps theming
|
- Added kvantum for qt apps theming
|
||||||
- return of wlogout due to theming issues of rofi-power
|
- return of wlogout due to theming issues of rofi-power
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ chmod +x install.sh
|
|||||||
./install.sh
|
./install.sh
|
||||||
```
|
```
|
||||||
### ✨ for ZSH and OH-MY-ZSH installation
|
### ✨ for ZSH and OH-MY-ZSH installation
|
||||||
> do this once installed and script completed; do the following to change the default shell zsh
|
> installer should auto change your default shell to zsh. However, if it does not, do this
|
||||||
```bash
|
```bash
|
||||||
chsh -s $(which zsh)
|
chsh -s $(which zsh)
|
||||||
zsh
|
zsh
|
||||||
@@ -78,7 +78,7 @@ source ~/.zshrc
|
|||||||
- Head over to wiki Link [`WIKI`](🏴https://github.com/JaKooLit/Hyprland-Dots/wiki)
|
- Head over to wiki Link [`WIKI`](🏴https://github.com/JaKooLit/Hyprland-Dots/wiki)
|
||||||
|
|
||||||
### 🛣️ Roadmap:
|
### 🛣️ Roadmap:
|
||||||
- [ ] Install zsh and oh-my-zsh without necessary steps above
|
- ~~[ ] Install zsh and oh-my-zsh without necessary steps above~~ DONE
|
||||||
- [ ] possibly adding gruvbox themes, cursors, icons
|
- [ ] possibly adding gruvbox themes, cursors, icons
|
||||||
|
|
||||||
### ⚠️ some known issues
|
### ⚠️ some known issues
|
||||||
|
|||||||
3
assets/.zprofile
Normal file
3
assets/.zprofile
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
|
||||||
|
Hyprland
|
||||||
|
fi
|
||||||
@@ -15,6 +15,17 @@ RESET=$(tput sgr0)
|
|||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="install-$(date +%d-%H%M%S)_zsh.log"
|
LOG="install-$(date +%d-%H%M%S)_zsh.log"
|
||||||
|
|
||||||
|
|
||||||
|
############## WARNING DO NOT EDIT BEYOND THIS LINE if you dont know what you are doing! ######################################
|
||||||
|
|
||||||
|
# Determine the directory where the script is located
|
||||||
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
# Change the working directory to the parent directory of the script
|
||||||
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
|
cd "$PARENT_DIR" || exit 1
|
||||||
|
|
||||||
|
|
||||||
ISAUR=$(command -v yay || command -v paru)
|
ISAUR=$(command -v yay || command -v paru)
|
||||||
|
|
||||||
# Set the script to exit on error
|
# Set the script to exit on error
|
||||||
@@ -61,6 +72,10 @@ if [[ $zsh =~ ^[Yy]$ ]]; then
|
|||||||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions && \
|
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions && \
|
||||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && \
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && \
|
||||||
cp -r 'assets/.zshrc' ~/
|
cp -r 'assets/.zshrc' ~/
|
||||||
|
cp -r 'assets/.zprofile' ~/
|
||||||
|
|
||||||
|
printf "${NOTE} changing default shell to zsh.....\n"
|
||||||
|
chsh -s $(which zsh)
|
||||||
else
|
else
|
||||||
printf "${NOTE} ZSH wont be installed.\n"
|
printf "${NOTE} ZSH wont be installed.\n"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user