diff --git a/set_up_dev/install_me.sh b/set_up_dev/install_me.sh index 50433ad..61591db 100755 --- a/set_up_dev/install_me.sh +++ b/set_up_dev/install_me.sh @@ -1,10 +1,33 @@ #!/bin/bash -# echo 'test' -$ ssh-keygen -C "$(whoami)@$(uname -n)-$(date -I) git key" -cat /home/$(whoami)/.ssh/id_rsa.pub +# Get current user +USER=$(whoami) + +# Define paths +SSH_DIR="/home/$USER/.ssh" +KEY_FILE="$SSH_DIR/id_rsa.pub" + +# Create .ssh directory if it doesn't exist +if [ ! -d "$SSH_DIR" ]; then + mkdir -p "$SSH_DIR" + echo "Created .ssh directory for user $USER" +fi + +# Check if the public key file exists +if [ -f "$KEY_FILE" ]; then + echo "Public key already exists at $KEY_FILE" +else + # Generate SSH key with a comment based on user, hostname, and timestamp + ssh-keygen -C "$USER@$(uname -n)-$(date -I)" -f "$SSH_DIR/id_rsa" + echo "SSH key generated successfully at $KEY_FILE" +fi + +# Optionally, display the public key if it was generated +if [ -f "$KEY_FILE" ]; then + echo "Public key content:" + cat "$KEY_FILE" +fi -curl -fsSL https://christitus.com/linux | sh package_list=( "alacritty" @@ -12,12 +35,15 @@ package_list=( "discord" "fastfetch" "firefox" - "git" - "spotify (Launcher)" + "spotify-launcher" + "ollama" ) -for package in "${package_list[@]}" -do - echo $package -done -# sudo pacman -S --noconfirm +# Create a string of packages +package_string=$(IFS=' ' ; echo "${package_list[@]}") + +# Install all packages from the string +echo "Attempting to install packages: $package_string" +sudo pacman -S --needed --noconfirm $package_string + +curl -fsSL https://christitus.com/linux | sh diff --git a/zsh/.histfile b/zsh/.histfile index 135a765..f039072 100644 --- a/zsh/.histfile +++ b/zsh/.histfile @@ -230,3 +230,33 @@ sudo pacman -S ttf-font-awesome waybar ttf-jetbrains-mono-nerd ttf-nerd-fonts-sy : 1746723992:0;gd : 1746724025:0;gds : 1746724038:0;ga . +: 1746724040:0;gds +: 1746724051:0;gc -m update +: 1746724059:0;gp +: 1746724138:0;cat +: 1746724286:0;lhdjslkfhsfuhskdjfh +: 1746724363:0;cat +: 1746724464:0;ollama run gemma3 +: 1746724761:0;cd dotfiles +: 1746724769:0;./install_me +: 1746724771:0;ls +: 1746724779:0;cd set_up_dev +: 1746724780:0;ls +: 1746724785:0;./install_me +: 1746724795:0;./install_me.sh +: 1746724874:0;sudo pacman -S spotify(Launcher) +: 1746725010:0;./dotfiles/dev_set_up/install_me.sh +: 1746725027:0;cd dotfiles/ +: 1746725027:0;ls +: 1746725039:0;cd set_up_dev +: 1746725040:0;ls +: 1746725048:0;./install_me.sh +: 1746725566:0;ollama -h +: 1746725576:0;ollama rm gemma3 +: 1746725582:0;ollama list +: 1746725637:0;ollama pull qwen3:4b +: 1746725731:0;ollama run qwen3:4b +: 1746726204:0;./install_me.sh +: 1746726267:0;cd .. +: 1746726269:0;gd +: 1746726273:0;ga . diff --git a/zsh/.zshrc b/zsh/.zshrc index c24025a..d795b5f 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -3,8 +3,14 @@ HISTSIZE=5000 SAVEHIST=100000 setopt autocd extendedglob unsetopt beep + bindkey -v + +bindkey "^[[H" beginning-of-line +bindkey "^[[F" end-of-line +bindkey "^[[3~" delete-char + # Enable colors and change prompt: autoload -U colors && colors PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "