updated bash prompt, removing pfetch from bashrc, re-org'ing keychain from bash profile to an alias

This commit is contained in:
opal
2023-09-20 20:35:14 -07:00
parent 957f47bb55
commit acf36656ff
6 changed files with 71 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
eval $(keychain --eval --quiet ry_ecdsa)
eval $(keychain --eval --quiet id_rsa)
#eval $(keychain --eval --quiet ry_ecdsa)
#eval $(keychain --eval --quiet id_rsa)
export MOZ_ENABLE_WAYLAND=1
export XDG_CONFIG_HOME=~/.config
export XDG_CACHE_HOME=~/.cache

View File

@@ -13,8 +13,6 @@ elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
pfetch
#######################################################
# EXPORTS
#######################################################
@@ -185,6 +183,7 @@ alias hss='hugo server --noHTTPCache'
alias stork='ssh stork'
alias mail='ssh mail'
alias eel='ssh eel'
alias keys='eval $(keychain --eval --quiet ry_ecdsa) && eval $(keychain --eval --quiet id_rsa)'
# Wget (keeps hsts files out of $HOME)
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
@@ -327,15 +326,16 @@ function __setprompt {
local CYAN="\033[0;36m"
local LIGHTCYAN="\033[1;36m"
local NOCOLOR="\033[0m"
local PURPLE="\033[1;34m"
PS1=""
# User and server
local SSH_IP=$(echo $SSH_CLIENT | awk '{ print $1 }')
local SSH2_IP=$(echo $SSH2_CLIENT | awk '{ print $1 }')
if [ $SSH2_IP ] || [ $SSH_IP ]; then
PS1+="(\[${RED}\]\u@\h"
PS1+="(\[${PURPLE}\]\u@\h"
else
PS1+="(\[${RED}\]\u"
PS1+="(\[${PURPLE}\]\u"
fi
# Current directory

View File

@@ -1,3 +1,5 @@
import:
- ~/.config/alacritty/dracula.yml
# Env
env:
TERM: xterm-256color

View File

@@ -0,0 +1,61 @@
# Dracula theme for Alacritty
# https://draculatheme.com/alacritty
#
# Color palette
# https://spec.draculatheme.com
#
# Template
# https://github.com/alacritty/alacritty/blob/master/alacritty.yml
colors:
primary:
background: "#282a36"
foreground: "#f8f8f2"
bright_foreground: "#ffffff"
cursor:
text: CellBackground
cursor: CellForeground
vi_mode_cursor:
text: CellBackground
cursor: CellForeground
search:
matches:
foreground: "#44475a"
background: "#50fa7b"
focused_match:
foreground: "#44475a"
background: "#ffb86c"
footer_bar:
background: "#282a36"
foreground: "#f8f8f2"
hints:
start:
foreground: "#282a36"
background: "#f1fa8c"
end:
foreground: "#f1fa8c"
background: "#282a36"
line_indicator:
foreground: None
background: None
selection:
text: CellForeground
background: "#44475a"
normal:
black: "#21222c"
red: "#ff5555"
green: "#50fa7b"
yellow: "#f1fa8c"
blue: "#bd93f9"
magenta: "#ff79c6"
cyan: "#8be9fd"
white: "#f8f8f2"
bright:
black: "#6272a4"
red: "#ff6e6e"
green: "#69ff94"
yellow: "#ffffa5"
blue: "#d6acff"
magenta: "#ff92df"
cyan: "#a4ffff"
white: "#ffffff"

View File

@@ -12,7 +12,7 @@
user-mail-address "ry.orlando@pm.me")
;; (setq doom-theme 'doom-dracula)
(load-theme 'ef-bio t)
(load-theme 'doom-dracula t)
;;(define-key global-map (kbd "<f5>") #'modus-themes-toggle)
(dolist (mode '(org-mode-hook

View File

@@ -7,7 +7,7 @@
["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])
'(auth-source-save-behavior nil)
'(custom-safe-themes
'("dad40020beea412623b04507a4c185079bff4dcea20a93d8f8451acb6afc8358" "a0415d8fc6aeec455376f0cbcc1bee5f8c408295d1c2b9a1336db6947b89dd98" "a9a67b318b7417adbedaab02f05fa679973e9718d9d26075c6235b1f0db703c8" "1704976a1797342a1b4ea7a75bdbb3be1569f4619134341bd5a4c1cfb16abad4" "b5803dfb0e4b6b71f309606587dd88651efe0972a5be16ece6a958b197caeed8" default))
'("944d52450c57b7cbba08f9b3d08095eb7a5541b0ecfb3a0a9ecd4a18f3c28948" "dad40020beea412623b04507a4c185079bff4dcea20a93d8f8451acb6afc8358" "a0415d8fc6aeec455376f0cbcc1bee5f8c408295d1c2b9a1336db6947b89dd98" "a9a67b318b7417adbedaab02f05fa679973e9718d9d26075c6235b1f0db703c8" "1704976a1797342a1b4ea7a75bdbb3be1569f4619134341bd5a4c1cfb16abad4" "b5803dfb0e4b6b71f309606587dd88651efe0972a5be16ece6a958b197caeed8" default))
'(exwm-floating-border-color "#191b20")
'(fci-rule-color "#5B6268")
'(highlight-tail-colors