diff --git a/configure.sh b/configure.sh index b00a16e..127e5a0 100755 --- a/configure.sh +++ b/configure.sh @@ -34,7 +34,7 @@ sudo systemctl enable sddm echo "Cloining kickstart nvim to nvim config location" git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim -sudo cp "$START_DIR"/nvim/ $HOME/.config/nvim -r +cp "$START_DIR"/nvim/* $HOME/.config/nvim/ -r echo "Installing rust and go and bootdev cli" curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh @@ -42,15 +42,19 @@ curl -sS https://webi.sh/golang | sh; source ~/.config/envman/PATH.env go install github.com/bootdotdev/bootdev@latest curl -sS https://webi.sh/gh | sh; source ~/.config/envman/PATH.env -sudo mkdir -p $HOME/.config/hypr/ -sudo cp "$START_DIR"/hypr/ $HOME/.config/hypr/ -r +mkdir -p $HOME/.config/hypr/ +cp "$START_DIR"/hypr/* $HOME/.config/hypr/ -r #hyprpaper and conf mkdir -p $HOME/Pictures/Wallpaper/ git clone https://github.com/htamas1210/Wallpapers.git $HOME/Pictures/Wallpaper/ printf "splash = true\nipc = on" > $HOME/.config/hypr/hyprpaper.conf +#waybar +mkdir -p $HOME/.config/waybar/ +cp "$START_DIR"/waybar/* $HOME/.config/waybar -r + echo "Installing Oh my zsh" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" -sudo cp $HOME/neovim_conf/.zshcr $HOME/zshrc +cp "$START_DIR"/zsh/.zshcr $HOME/.zshrc chsh -s $(which zsh) diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..1da18b0 --- /dev/null +++ b/zsh/.zshrc @@ -0,0 +1,53 @@ +# If you come from bash you might have to change your $PATH. +# export PATH=$HOME/bin:/usr/local/bin:$PATH + +export ZSH="$HOME/.oh-my-zsh" + +ZSH_THEME="agnosterzak" + +plugins=( + git + archlinux + zsh-autosuggestions + zsh-syntax-highlighting +) + +source $ZSH/oh-my-zsh.sh + +# Check archlinux plugin commands here +# https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/archlinux + +# Display Pokemon-colorscripts +# Project page: https://gitlab.com/phoneybadger/pokemon-colorscripts#on-other-distros-and-macos +#pokemon-colorscripts --no-title -s -r #without fastfetch +pokemon-colorscripts --no-title -s -r | fastfetch -c $HOME/.config/fastfetch/config-pokemon.jsonc --logo-type file-raw --logo-height 10 --logo-width 5 --logo - + +# fastfetch. Will be disabled if above colorscript was chosen to install +#fastfetch -c $HOME/.config/fastfetch/config-compact.jsonc + +# Set-up icons for files/directories in terminal using lsd +alias ls='lsd' +alias l='ls -l' +alias la='ls -a' +alias lla='ls -la' +alias lt='ls --tree' + +# Set-up FZF key bindings (CTRL R for fuzzy history finder) +source <(fzf --zsh) + +HISTFILE=~/.zsh_history +HISTSIZE=10000 +SAVEHIST=10000 +setopt appendhistory + +# Generated for envman. Do not edit. +[ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh" + + +function y() { + local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd + yazi "$@" --cwd-file="$tmp" + IFS= read -r -d '' cwd < "$tmp" + [ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd" + rm -f -- "$tmp" +}