config: fix manjaro bootstrap issues
This commit is contained in:
parent
38b8b8f348
commit
2f9559afe6
|
@ -4,9 +4,8 @@ which pacman >/dev/null || return 0
|
||||||
alias pac='noglob sudo pacman'
|
alias pac='noglob sudo pacman'
|
||||||
alias pacs='pac -Syu --needed'
|
alias pacs='pac -Syu --needed'
|
||||||
alias pacr='pac -R --recursive'
|
alias pacr='pac -R --recursive'
|
||||||
alias yays='noglob yay -Sy --needed'
|
alias yays='noglob yay -Sy --needed --noprovides --noremovemake'
|
||||||
alias yayr='noglob yay -R --cascade --recursive'
|
alias yayr='noglob yay -R --cascade --recursive'
|
||||||
alias yau='yay -Syu --nobatchinstall'
|
|
||||||
|
|
||||||
# Helper function to integrate yay and fzf
|
# Helper function to integrate yay and fzf
|
||||||
yzf() {
|
yzf() {
|
||||||
|
|
|
@ -16,8 +16,8 @@ highlight "password-free reboot"
|
||||||
echo "$USER ALL = NOPASSWD: /usr/bin/halt, /usr/bin/shutdown, /usr/bin/reboot, /usr/bin/poweroff, /bin/reboot, /bin/shutdown. /usr/bin/umount" |
|
echo "$USER ALL = NOPASSWD: /usr/bin/halt, /usr/bin/shutdown, /usr/bin/reboot, /usr/bin/poweroff, /bin/reboot, /bin/shutdown. /usr/bin/umount" |
|
||||||
sudo tee /etc/sudoers.d/shutdown
|
sudo tee /etc/sudoers.d/shutdown
|
||||||
|
|
||||||
highlight "Default to current user in tty1,2,3"
|
highlight "Set default user in tty1,2,3"
|
||||||
sudo mkdir -p /etc/systemd/system/getty@tty1.service.d /etc/systemd/system/getty@tty2.service.d /etc/systemd/system/getty@tty3.service.d
|
sudo mkdir -p /etc/systemd/system/getty@tty{1,2,3}.service.d
|
||||||
echo "[Service]
|
echo "[Service]
|
||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=-/usr/bin/agetty --skip-login --login-options $USER %I" |
|
ExecStart=-/usr/bin/agetty --skip-login --login-options $USER %I" |
|
||||||
|
@ -53,6 +53,8 @@ test "$hasService" && sudo service cron reload || sudo systemctl reload cronie
|
||||||
|
|
||||||
highlight "Zsh"
|
highlight "Zsh"
|
||||||
test -n "$ZSH" || export ZSH="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/oh-my-zsh"
|
test -n "$ZSH" || export ZSH="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/oh-my-zsh"
|
||||||
|
mkdir -p "$ZSH"
|
||||||
|
oldzsh="$XDG_STATE_HOME/zsh/oh-my-zsh" && test ! -d "$ZSH" && test -d "$oldzsh" && mv -vn $oldzsh $ZSH
|
||||||
cloneshallow() {
|
cloneshallow() {
|
||||||
url=https://github.com/$2/$1.git
|
url=https://github.com/$2/$1.git
|
||||||
dir="${3:-$ZSH/plugins/$1}"
|
dir="${3:-$ZSH/plugins/$1}"
|
||||||
|
|
10
README.org
10
README.org
|
@ -30,13 +30,15 @@ and configuration for ~less~ and ~fzf~.
|
||||||
: pacman -Qe | cut -d\ -f1 | xclip -selection clipboard
|
: pacman -Qe | cut -d\ -f1 | xclip -selection clipboard
|
||||||
# Use org-yank-visible
|
# Use org-yank-visible
|
||||||
- essentials :: curl git zsh bat neovim man-db
|
- essentials :: curl git zsh bat neovim man-db
|
||||||
- basic tools :: tree wget locate texinfo man-pages base-devel fzf
|
- basic tools :: tree wget texinfo man-pages base-devel fzf topgrade
|
||||||
fd zsh-completions python-pynvim unrar mlocate
|
fd ripgrep zsh-completions python-pynvim unrar mlocate
|
||||||
- dotfiles :: yadm
|
- dotfiles :: yadm
|
||||||
: yadm clone --bootstrap git@git.jfischer.org:xeruf/dotfiles.git
|
: yadm clone --bootstrap git@git.jfischer.org:xeruf/dotfiles.git
|
||||||
: yadm clone --bootstrap https://git.jfischer.org/xeruf/dotfiles.git
|
: yadm clone --bootstrap https://git.jfischer.org/xeruf/dotfiles.git
|
||||||
** Applications
|
** Applications
|
||||||
- common tools :: ripgrep topgrade ffmpeg imagemagick pandoc [[https://lftp.yar.ru/][lftp]] glances youtube-dl dos2unix zsh-doc pacman-contrib
|
- utilities :: youtube-dl dos2unix
|
||||||
|
- powertools :: hexedit hexyl [[https://lftp.yar.ru/][lftp]] glances zsh-doc pacman-contrib
|
||||||
|
- multitools :: ffmpeg imagemagick pandoc
|
||||||
- music :: mpd mpc ncmpc vlc phonon-qt5-vlc mpdris2
|
- music :: mpd mpc ncmpc vlc phonon-qt5-vlc mpdris2
|
||||||
: mkdir -p ~/.local/state/mpd && systemctl --user enable --now mpd mpDris2
|
: mkdir -p ~/.local/state/mpd && systemctl --user enable --now mpd mpDris2
|
||||||
- music management :: puddletag beets picard ffmpegthumbnailer sox
|
- music management :: puddletag beets picard ffmpegthumbnailer sox
|
||||||
|
@ -99,7 +101,7 @@ After running android-studio setup, accept licenses:
|
||||||
: $ANDROID_SDK_ROOT/tools/bin/sdkmanager --licenses
|
: $ANDROID_SDK_ROOT/tools/bin/sdkmanager --licenses
|
||||||
** Server
|
** Server
|
||||||
Setup systemd-resolved and systemd-networkd
|
Setup systemd-resolved and systemd-networkd
|
||||||
- tools :: fd-find
|
- tools :: fd-find locate
|
||||||
- rust :: cargo install zoxide diffr
|
- rust :: cargo install zoxide diffr
|
||||||
: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
||||||
- ssh (Ubuntu) :: lemonade openssh
|
- ssh (Ubuntu) :: lemonade openssh
|
||||||
|
|
Loading…
Reference in New Issue