Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
ediw8311xht committed Aug 9, 2024
1 parent e5c6af4 commit 74561ff
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions bashrc_files/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ mps() {
local d1='\D{%F}' d2='\D{%T}' d3='\D{%s}'
local d4='\D{%d-%m-%y}' d5='\D{%H%M}' d6='\D{%Y%m%d}'
local s1=':\w/:>' s2='-\$' s3=':\W/:>'
local spec_ssh=''
if [[ -n "${SSH_CLIENT}" ]] || [[ -n "${SSH_TTY}" ]] ; then
local spec_ssh='\[\e[01m\]\[\e[37m\][\[\e[32m\]SSH\[\e[37m\]]'
fi
#- INITIALIZE -#
PROMPT_DIRTRIM='0'
case "${1,,}" in
l) PROMPT_DIRTRIM='2'; PS1="${spec_ssh}$h1 $d1 | $d2 $h2 $s1 "
;; m) PROMPT_DIRTRIM='1'; PS1="${spec_ssh}$h1 $d4 $d5 $h2 $s3 "
;; s) PROMPT_DIRTRIM='0'; PS1="${spec_ssh} $d3 $s2 "
;; xs) PROMPT_DIRTRIM='5'; PS1="${spec_ssh}${h4} :\w:$ ${h2}"
#PS0="${h1} ${PWD} | ${d1} | ${d2} \n"'\e[0 q\[\e[0m\]'
;; x) PROMPT_DIRTRIM='5'; PS1="${spec_ssh}${h3} |${d6}|\w:$ "
;; *) return 2
esac
PS1+='\[\e[0m\]'
Expand Down
1 change: 1 addition & 0 deletions doomemacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
;;terraform ; infrastructure as code
;;tmux ; an API for interacting with tmux
;;tree-sitter ; syntax and parsing, sitting in a tree...
;;upload ; map local to remote projects via ssh/ftp

:os
(:if IS-MAC macos) ; improve compatibility with macOS
Expand Down
1 change: 1 addition & 0 deletions kitty/kitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
confirm_os_window_close 0
# URL #
open_url_with brave
url_prefixes file ftp ftps gemini git gopher http https irc ircs kitty mailto news sftp ssh
detect_urls yes
underline_hyperlinks always
url_color #08B
Expand Down
2 changes: 1 addition & 1 deletion polybar/config.ini

0 comments on commit 74561ff

Please sign in to comment.