Switch to zsh instead of bash
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
ca2c5b0c2b
commit
88927bbf39
13 changed files with 115 additions and 101 deletions
31
system/.config/zsh/.zprofile
Normal file
31
system/.config/zsh/.zprofile
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/zsh
|
||||
#
|
||||
# SCRIPT NAME:
|
||||
# .zprofile
|
||||
#
|
||||
# AUTHOR:
|
||||
# Severin Kaderli <severin.kaderli@gmail.com>
|
||||
#
|
||||
# DESCRIPTION:
|
||||
# This script is called when you start a login shell.
|
||||
#
|
||||
# USAGE:
|
||||
# This script is automatically executed when you start a login shell.
|
||||
if [[ -f "${HOME}/.config/zsh/.zshrc" ]]; then
|
||||
. "${HOME}/.config/zsh/.zshrc"
|
||||
fi
|
||||
|
||||
if [[ -f "${XDG_CONFIG_HOME}/custom/keyleds" ]]; then
|
||||
. "${XDG_CONFIG_HOME}/custom/keyleds"
|
||||
fi
|
||||
|
||||
# Restore custom dconf configuration
|
||||
dconf load / < "${XDG_CONFIG_HOME}/dconf/root.conf"
|
||||
|
||||
# Activate correct crontab file
|
||||
crontab "${XDG_CONFIG_HOME}/cron/crontab"
|
||||
|
||||
# If we are on tty1 we start the x-server
|
||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||
startx "${XDG_CONFIG_HOME}/X11/xinitrc" && exit
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue