Change system+login shell to Dash, add zsh and configuration

This commit is contained in:
2023-03-30 18:14:13 -04:00
parent 2dcad0828a
commit 49de04a67a
19 changed files with 112 additions and 40 deletions
+1
View File
@@ -13,5 +13,6 @@ alias schedutil='doas /usr/local/bin/powerset.sh schedutil'
alias ondemand='doas /usr/local/bin/powerset.sh ondemand'
alias poweroff='doas /usr/bin/poweroff'
alias reboot='doas /usr/bin/reboot'
alias blank='/usr/local/bin/plasmablank.sh'
PS1='\[\e[36m\]\u\[\e[0m\]@\[\e[36m\]\h:\[\e[0m\]\W\[\e[36m\]|$\[\e[0m\] '
+11
View File
@@ -0,0 +1,11 @@
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Target = bash
[Action]
Description = Re-pointing /bin/sh symlink to dash...
When = PostTransaction
Exec = /usr/bin/ln -sfT dash /usr/bin/sh
Depends = dash
+5
View File
@@ -0,0 +1,5 @@
[Desktop Entry]
DefaultProfile=Custom.profile
[General]
ConfigVersion=1
-11
View File
@@ -1,11 +0,0 @@
[Trigger]
Operation=Install
Operation=Upgrade
Type=Package
Target=modemmanager
[Action]
Description=Re-disable ModemManager DBUS service after upgrade.
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c 'echo -e "[D-BUS Service]\nName=org.freedesktop.ModemManager1\nExec=/bin/false\nUser=root\nSystemdService=dbus-org.freedesktop.ModemManager1.service" > /usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service'
+11
View File
@@ -0,0 +1,11 @@
[Trigger]
Operation=Install
Operation=Upgrade
Type=Package
Target=modemmanager
[Action]
Description=Re-disable ModemManager DBUS service after upgrade.
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c 'printf "[D-BUS Service]\nName=org.freedesktop.ModemManager1\nExec=/bin/false\nUser=root\nSystemdService=dbus-org.freedesktop.ModemManager1.service" > /usr/share/dbus-1/system-services/org.freedesktop.ModemManager1.service'
-1
View File
@@ -5,7 +5,6 @@ Operation=Remove
Type=Package
Target=nvidia-lts
Target=linux-lts
# Change the linux part above and in the Exec line if a different kernel is used
[Action]
Description=Update Nvidia module in initcpio
@@ -5,7 +5,6 @@ Operation=Remove
Type=Package
Target=nvidia
Target=linux
# Change the linux part above and in the Exec line if a different kernel is used
[Action]
Description=Update Nvidia module in initcpio
@@ -1,6 +1,4 @@
#
# ~/.bash_profile
#
#!/bin/sh
# WAYLAND ENV
export MOZ_ENABLE_WAYLAND=1
@@ -13,14 +11,11 @@ export XDG_STATE_HOME="$HOME"/.local/state
export XDG_CACHE_HOME="$HOME"/.cache
# DOTFILE MANAGEMENT
export HISTFILE="${XDG_STATE_HOME}"/bash/history
export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
export EDITOR=micro
export BUILDDIR=/tmp/makepkg
export HISTSIZE=10000
export HISTFILESIZE=100000
if [ -z $DISPLAY ] && [ $(tty) = /dev/tty6 ]; then exec setterm --blank=force; exit; fi
[ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ] && exec dbus-run-session startplasma-wayland
+52
View File
@@ -0,0 +1,52 @@
# Lines configured by zsh-newuser-install
HISTFILE=~/.local/share/zsh/histfile
HISTSIZE=1000
SAVEHIST=1000
unsetopt beep
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/cuan/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# The following lines represent custom user configuration
art_cat='%F{214}/\_,_/\
\ 0 0 /%f'
art_dog=' %F{222}/___/
| 6.6 |%f'
art_snail=' %F{114}|_/
/o o\%f'
art_bunny=' /_/
|^.^|'
art_jellyfish='%F{183}<===>
//|\\%f'
art_school=' %F{214}<°))>< %F{222}><(((.>
%F{114}><(((°> %F{183}><((((°>%f'
art_array=("$art_cat" "$art_dog" "$art_snail" "$art_bunny" "$art_jellyfish" "$art_school")
print -Pr "$art_array[$((RANDOM%6+1))]"
PS1='%F{cyan}%n%f@%F{cyan}%m:%f%1~%f%F{cyan}|%#%f '
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
bindkey '^[[3~' delete-char
function yakuake_clear() {
clear
print -Pr "$art_array[$((RANDOM%6+1))]"
print -Pn $PS1
}
zle -N zsh-redraw yakuake_clear
bindkey "^L" zsh-redraw
# End of lines representing custom user configuration
# The following lines represent custom user aliases
alias ls='ls --color=auto'
alias orphans='doas pacman -Rcns $(pacman -Qqdt)'
alias powersave='doas /usr/local/bin/powerset.sh powersave'
alias performance='doas /usr/local/bin/powerset.sh performance'
alias schedutil='doas /usr/local/bin/powerset.sh schedutil'
alias ondemand='doas /usr/local/bin/powerset.sh ondemand'
alias poweroff='doas /usr/bin/poweroff'
alias reboot='doas /usr/bin/reboot'
alias blank='/usr/local/bin/plasmablank.sh'
# End of lines representing custom user aliases