diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 4b1c257..0abffb3 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -71,6 +71,8 @@ bindkey -s '^f' 'cd "$(dirname "$(fzf)")"\n' bindkey '^[[P' delete-char +setxkbmap gb + # Edit line in vim with ctrl-e: autoload edit-commandd-line; zle -N edit-command-line bindkey '^e' edit-command-line diff --git a/.local/bin/setup/setup b/.local/bin/setup/setup index e752da4..875132b 100755 --- a/.local/bin/setup/setup +++ b/.local/bin/setup/setup @@ -6,5 +6,3 @@ read -n 1 -r -s -p $'Press enter when you have synced enpass...\n' export MASTERPW=$(dialog --no-cancel --passwordbox "Enter Enpass master password." 10 60 3>&1 1>&2 2>&3 3>&1) -LABSPW=$(enpasscli -vault/home/chris/Documents/Enpass/Vaults/Primary -sort show "Scarif: Labs" 2>&1 | awk '{print $NF}') - diff --git a/.local/bin/setup/ssh b/.local/bin/setup/ssh index e69de29..99c2745 100755 --- a/.local/bin/setup/ssh +++ b/.local/bin/setup/ssh @@ -0,0 +1,28 @@ +#!/bin/bash + +LABS=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/Primary" -sort show "Scarif: Labs" 2>&1) +LABSUN=$(echo "$LABS" | grep -Po "(?<=login: )\w+") +LABSPW=$(echo "$LABS" | grep -Po "(?<=pass : ).+(?=\")") + +SSHPATH="$HOME/.ssh/id_ed25519" + +ssh-keygen -t ed25519 -f "$SSHPATH" -N "" -q + +generate_post_data() { + cat <