From 08ac77883cceb77e83bf524b2741fb904166dd80 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Thu, 15 Jun 2023 21:57:11 +0200 Subject: [PATCH] feat: add setup to be used by coder --- home/config/hypr/hyprland.conf | 4 ++-- home/config/zsh/02-plugins.zsh | 3 ++- home/config/zsh/03-aliases.zsh | 5 ++++- home/zshrc | 11 +++++++++++ setup.sh | 10 ++++++++++ 5 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 setup.sh diff --git a/home/config/hypr/hyprland.conf b/home/config/hypr/hyprland.conf index 64d1829..bbd5ec4 100644 --- a/home/config/hypr/hyprland.conf +++ b/home/config/hypr/hyprland.conf @@ -86,7 +86,7 @@ dwindle { master { # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more new_is_master = false - mfact = 0.60 + mfact = 0.40 no_gaps_when_only = false orientation = center } @@ -122,7 +122,7 @@ bind = $mainMod, q, killactive, bind = $mainMod, BackSpace, exit, bind = $mainMod, E, exec, thunar bind = $mainMod, V, togglefloating, -bind = $mainMod, Space, exec, wofi --show drun +bind = $mainMod, Space, exec, rofi -show drun -config $HOME/.config/rofi/rofidmenu.rasi bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, F, fullscreen diff --git a/home/config/zsh/02-plugins.zsh b/home/config/zsh/02-plugins.zsh index 5913171..4d614de 100644 --- a/home/config/zsh/02-plugins.zsh +++ b/home/config/zsh/02-plugins.zsh @@ -10,5 +10,6 @@ znap source ohmyzsh/ohmyzsh \ command -v golangci-lint &> /dev/null && znap fpath _golangci-lint 'golangci-lint completion zsh' command -v goreleaser &> /dev/null && znap fpath _goreleaser 'goreleaser completion zsh' command -v mockery &> /dev/null && znap fpath _mockery 'mockery completion zsh' +command -v buildr&> /dev/null && znap fpath _mockery 'buildr completion zsh' -znap source marlonrichert/zsh-autocomplete \ No newline at end of file +znap source marlonrichert/zsh-autocomplete diff --git a/home/config/zsh/03-aliases.zsh b/home/config/zsh/03-aliases.zsh index ab4f617..fd621be 100644 --- a/home/config/zsh/03-aliases.zsh +++ b/home/config/zsh/03-aliases.zsh @@ -14,4 +14,7 @@ alias ytv='youtube-viewer --video-player=mplayer -novideo' alias ytdlm="youtube-dl --extract-audio --audio-format flac" alias http='http --pretty all --style monokai' alias srm='shred -zvu -n 5' -alias dotnet="$HOME/.dotnet/dotnet" \ No newline at end of file + +if [ -d $HOME/.dotnet/dotnet ]; then +alias dotnet="$HOME/.dotnet/dotnet" +fi \ No newline at end of file diff --git a/home/zshrc b/home/zshrc index 0b6d541..33b8adc 100644 --- a/home/zshrc +++ b/home/zshrc @@ -4,23 +4,34 @@ pfetch export PATH=$PATH:$HOME/.local/bin # Cargo env +if [ -d $HOME/.cargo/bin ]; then export PATH=$PATH:$HOME/.cargo/bin +fi # Go export PATH=$PATH:$HOME/go/bin # Yarn +if [ -d $HOME/.yarn/bin ]; then export PATH=$PATH:$HOME/.yarn/bin +fi # Rancher +if [ -d $HOME/.rd/bin ]; then export PATH=$PATH:$HOME/.rd/bin +fi # Jetbrains Toolbox +if [ -d $HOME/.local/share/JetBrains/Toolbox/scripts ]; then export PATH=$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts +fi # Dotnet +if [ -d $HOME/.dotnet ]; then export DOTNET_ROOT=$HOME/.dotnet export PATH=$PATH:$DOTNET_ROOT +fi + export PATH=$PATH:$HOME/.dotnet/tools # Znap diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..d41ad89 --- /dev/null +++ b/setup.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +mkdir -p $HOME/.local/bin && curl -sS https://starship.rs/install.sh | sudo -E sh -s -- --yes --bin-dir $HOME/.local/bin +curl -L https://github.com/Gobidev/pfetch-rs/releases/latest/download/pfetch-linux-gnu-x86_64.tar.gz | sudo tar -xvz -C /usr/local/bin/ + +cp home/zshrc ~/.zshrc +mkdir -p ~/.config/zsh + +cp home/config/starship.toml +cp home/config/zsh/* ~/.config/zsh/ \ No newline at end of file