master
Tom Weber 3 years ago
parent 982732a8a6
commit 0e3c319502

@ -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 -)"

@ -1,14 +1,26 @@
# do networking stuff
sudo systemctl enable dhcpcd sudo systemctl enable dhcpcd
sudo systemctl start dhcpcd sudo systemctl start dhcpcd
interface=$(find /sys/class/net -mindepth 1 -maxdepth 1 -lname '*virtual*' -prune -o -printf '%f\n'| head -1) 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 enable dhcpcd@$interface.service
sudo systemctl start dhcpcd@$interface.service sudo systemctl start dhcpcd@$interface.service
sleep 3
# install yay
git clone https://aur.archlinux.org/yay.git git clone https://aur.archlinux.org/yay.git
(cd yay && makepkg -sic) (cd yay && makepkg -sic)
rm -rf yay rm -rf yay
# update conky config with correct interface
sed -i "s/wlp9s0/$interface/g" ~/.config/conky/Zavijava/Zavijava.conf sed -i "s/wlp9s0/$interface/g" ~/.config/conky/Zavijava/Zavijava.conf
# install papirus folders
wget -qO- https://git.io/papirus-folders-install | sh wget -qO- https://git.io/papirus-folders-install | sh
papirus-folders -C nordic --theme Papirus 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 -)"

Loading…
Cancel
Save