From 0e3c31950266c88dfc7f1ea83e99ae52e11656d7 Mon Sep 17 00:00:00 2001 From: Tom Weber Date: Thu, 20 Oct 2022 16:56:06 +0200 Subject: [PATCH] .zshrc --- .zshrc | 42 ++++++++++++++++++++++++++++++++++++++++++ post_install.sh | 14 +++++++++++++- 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 .zshrc diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..88f14f6 --- /dev/null +++ b/.zshrc @@ -0,0 +1,42 @@ +if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then + source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" +fi + +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +# ZSH_THEME="powerlevel10k/powerlevel10k" +ZSH_THEME="ar-round" +plugins=(git + #zsh-completions +) + +# PATH EXPORTS +export PATH=$HOME/bin:/usr/local/bin:$PATH +export ZSH=$HOME/.oh-my-zsh +export PASSWORD_STORE_GENERATED_LENGTH=32 +export EDITOR="/usr/bin/nvim" +export GOPATH=$HOME/.go + +source $ZSH/oh-my-zsh.sh +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh +ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8' +source $HOME/.cargo/env + +# ALIASES +alias gpg_hardware='export GNUPGHOME=$HOME/.gnupg/trezor' +alias gpg_software='export GNUPGHOME=$HOME/tux/.gnupg' +alias mutt="mbsync -a && neomutt" +alias vim="nvim" +alias ls="exa -lgh --icons --group-directories-first" +alias la="exa -lgha --icons --group-directories-first" +alias cat="bat" +alias yubikey_discover="gpg-connect-agent 'scd serialno' 'learn --force' /bye" + +# GPG Dialog +export GPG_TTY="$(tty)" + +# Bat Theme +export BAT_THEME="base16" +eval "$(pyenv init -)" + diff --git a/post_install.sh b/post_install.sh index b50ed05..3606213 100644 --- a/post_install.sh +++ b/post_install.sh @@ -1,14 +1,26 @@ +# do networking stuff sudo systemctl enable dhcpcd sudo systemctl start dhcpcd interface=$(find /sys/class/net -mindepth 1 -maxdepth 1 -lname '*virtual*' -prune -o -printf '%f\n'| head -1) sudo systemctl enable dhcpcd@$interface.service sudo systemctl start dhcpcd@$interface.service +sleep 3 +# install yay git clone https://aur.archlinux.org/yay.git (cd yay && makepkg -sic) rm -rf yay +# update conky config with correct interface sed -i "s/wlp9s0/$interface/g" ~/.config/conky/Zavijava/Zavijava.conf +# install papirus folders wget -qO- https://git.io/papirus-folders-install | sh -papirus-folders -C nordic --theme Papirus \ No newline at end of file +papirus-folders -C nordic --theme Papirus + +# install aur packages +yay -S --no-confirm neovim-plug + +# install zsh and omz +chsh -s $(which zsh) +sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"