feat: add setup for link

This commit is contained in:
Fabio Lenherr / DashieTM 2023-01-03 01:49:42 +01:00
parent 8a94127eae
commit da9f17d8ca
2 changed files with 15 additions and 13 deletions

22
.zshrc
View file

@ -1,21 +1,19 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi fi
# The following lines were added by compinstall # The following lines were added by compinstall
zstyle :compinstall filename '/home/dashie/.zshrc' zstyle :compinstall filename '$HOME/.zshrc'
autoload -Uz compinit autoload -Uz compinit
compinit compinit
# End of lines added by compinstall ##########
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile HISTFILE=~/.histfile
HISTSIZE=1000 HISTSIZE=1000
SAVEHIST=1000 SAVEHIST=1000
# End of lines configured by zsh-newuser-install # End of lines configured by zsh-newuser-install
#
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
@ -23,15 +21,15 @@ source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
#[ -f "/home/dashie/.ghcup/env" ] && source "/home/dashie/.ghcup/env" # ghcup-env
[ -f "/home/dashie/.ghcup/env" ] && source "/home/dashie/.ghcup/env" # ghcup-env
export PATH=$PATH:~/.local/bin export PATH=$PATH:~/.local/bin
export PATH=$PATH:~/.cargo/bin
export GPG_TTY=$TTY export GPG_TTY=$TTY
#export KWIN_X11_REFRESH_RATE=180000 export TEXMFHOME=$HOME/.texmf
#export KWIN_X11_NO_SYNC_TO_VBLANK=0
#export KWIN_X11_FORCE_SOFTWARE_VSYNC=1
export MANGOHUD_CONFIG=position=top-right,font_scale=0.7,round_corners=10.0 export MANGOHUD_CONFIG=position=top-right,font_scale=0.7,round_corners=10.0
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1
alias update='/home/dashie/Documents/scripts/update.sh' export QT_AUTO_SCREEN_SCALE_FACTOR=0
alias sudo='sudo ' alias sudo='sudo '
alias ls='lsd' alias ls='lsd'
alias :q='exit'

View file

@ -1,2 +1,6 @@
find $PWD -maxdepth 10 -mindepth 1 -type d -exec ln -s '{}' $HOME/.config/ \; find $PWD -maxdepth 10 -mindepth 1 -type d -exec ln -s '{}' $HOME/.config/ \;
mv $HOME/.config/.zshrc ../.zshrc
unlink $HOME/.config/.git
unlink $HOME/.config/.gitignore
unlink $HOME/.config/README.md
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'