This commit is contained in:
Jake Pullen
2025-05-08 18:44:41 +01:00
parent db25d041e3
commit f89bd10465
3 changed files with 73 additions and 11 deletions
+37 -11
View File
@@ -1,10 +1,33 @@
#!/bin/bash #!/bin/bash
# echo 'test' # Get current user
$ ssh-keygen -C "$(whoami)@$(uname -n)-$(date -I) git key" USER=$(whoami)
cat /home/$(whoami)/.ssh/id_rsa.pub
# 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=( package_list=(
"alacritty" "alacritty"
@@ -12,12 +35,15 @@ package_list=(
"discord" "discord"
"fastfetch" "fastfetch"
"firefox" "firefox"
"git" "spotify-launcher"
"spotify (Launcher)" "ollama"
) )
for package in "${package_list[@]}" # Create a string of packages
do package_string=$(IFS=' ' ; echo "${package_list[@]}")
echo $package
done # Install all packages from the string
# sudo pacman -S --noconfirm echo "Attempting to install packages: $package_string"
sudo pacman -S --needed --noconfirm $package_string
curl -fsSL https://christitus.com/linux | sh
+30
View File
@@ -230,3 +230,33 @@ sudo pacman -S ttf-font-awesome waybar ttf-jetbrains-mono-nerd ttf-nerd-fonts-sy
: 1746723992:0;gd : 1746723992:0;gd
: 1746724025:0;gds : 1746724025:0;gds
: 1746724038:0;ga . : 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 .
+6
View File
@@ -3,8 +3,14 @@ HISTSIZE=5000
SAVEHIST=100000 SAVEHIST=100000
setopt autocd extendedglob setopt autocd extendedglob
unsetopt beep unsetopt beep
bindkey -v bindkey -v
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[3~" delete-char
# Enable colors and change prompt: # Enable colors and change prompt:
autoload -U colors && colors autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "