Dotfiles config update (2022-03-02)
This commit is contained in:
parent
f7f6294d97
commit
199d69f98a
4
.bashrc
4
.bashrc
|
@ -174,7 +174,7 @@ echo -e "\e[31m +@* \e[0m \e[33mMemory: \e[0m\e[35m${me
|
|||
echo -e "\e[31m :@: \e[0m"
|
||||
echo -e "\e[31m % \e[0m"
|
||||
echo -e "\e[31m \e[0m"
|
||||
echo -e "\e[32m # Bienvenido al terminal de ${user_loaded}\e[0m"
|
||||
echo -e -n "\e[35m # Cargando el terminal / \e[0m"
|
||||
echo -e "\e[32m # Welcome to terminal of ${user_loaded}\e[0m"
|
||||
echo -e -n "\e[35m # Loading terminal / \e[0m"
|
||||
echo ""
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ set cpu_model (echo {$cpu_model} | tr -s " ")
|
|||
set mem_total (lsmem | grep "Total online memory:" | tr -s " " | cut -d ":" -f 2)
|
||||
set mem_total (echo {$mem_total} | cut -f 2)
|
||||
set arch_system (uname -m)
|
||||
set hostname {$HOSTNAME}
|
||||
set hostname_host (hostname)
|
||||
set session_type {$XDG_SESSION_TYPE}
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
|
@ -33,7 +33,7 @@ echo -e " "
|
|||
echo -e "\e[31m :. .: \e[0m"
|
||||
echo -e "\e[31m .=: :=. \e[0m"
|
||||
echo -e "\e[31m -+ =- \e[0m \e[33mOS: \e[0m\e[35m$os_system\e[0m"
|
||||
echo -e "\e[31m :# *- \e[0m \e[33mHost: \e[0m\e[35m$hostname\e[0m"
|
||||
echo -e "\e[31m :# *- \e[0m \e[33mHost: \e[0m\e[35m$hostname_host\e[0m"
|
||||
echo -e "\e[31m @= :@ \e[0m \e[33mKernel: \e[0m\e[35m$kernel\e[0m"
|
||||
echo -e "\e[31m .@- :@:\e[0m \e[33mUptime: \e[0m\e[35m$uptime\e[0m"
|
||||
echo -e "\e[31m @* *@.\e[0m \e[33mShell: \e[0m\e[35mfish $shell\e[0m"
|
||||
|
@ -47,8 +47,8 @@ echo -e "\e[31m +@* \e[0m \e[33mMemory: \e[0m\e[35m$mem
|
|||
echo -e "\e[31m :@: \e[0m"
|
||||
echo -e "\e[31m % \e[0m"
|
||||
echo -e "\e[31m \e[0m"
|
||||
echo -e "\e[32m # Bienvenido al terminal de $user_loaded\e[0m"
|
||||
echo -e -n "\e[35m # Cargando el terminal / \e[0m"
|
||||
echo -e "\e[32m # Welcome to terminal of $user_loaded\e[0m"
|
||||
echo -e -n "\e[35m # Loading terminal / \e[0m"
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
|
|
4
.zshrc
4
.zshrc
|
@ -275,6 +275,6 @@ echo -e "\e[31m +@* \e[0m \e[33mMemory: \e[0m\e[35m${me
|
|||
echo -e "\e[31m :@: \e[0m"
|
||||
echo -e "\e[31m % \e[0m"
|
||||
echo -e "\e[31m \e[0m"
|
||||
echo -e "\e[32m # Bienvenido al terminal de ${user_loaded}\e[0m"
|
||||
echo -e -n "\e[35m # Cargando el terminal / \e[0m"
|
||||
echo -e "\e[32m # Welcome to terminal of ${user_loaded}\e[0m"
|
||||
echo -e -n "\e[35m # Loading terminal / \e[0m"
|
||||
echo ""
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Variables para mostrar
|
||||
# Variables
|
||||
#os_system="Devuan 4"
|
||||
os_system=$(lsb_release -d | tr -s " " | cut -d ":" -f 2)
|
||||
os_system=$(echo ${os_system})
|
||||
|
@ -38,6 +38,6 @@ echo -e "\e[31m +@* \e[0m \e[33mMemory: \e[0m\e[35m${me
|
|||
echo -e "\e[31m :@: \e[0m"
|
||||
echo -e "\e[31m % \e[0m"
|
||||
echo -e "\e[31m \e[0m"
|
||||
echo -e "\e[32m # Bienvenido al terminal de ${user_loaded}\e[0m"
|
||||
echo -e -n "\e[35m # Cargando el terminal / \e[0m"
|
||||
echo -e "\e[32m # Welcome to terminal of ${user_loaded}\e[0m"
|
||||
echo -e -n "\e[35m # Loading terminal / \e[0m"
|
||||
echo ""
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
set TERM xterm-256color
|
||||
|
||||
set user_loaded (whoami)
|
||||
set hostname_host (hostname)
|
||||
|
||||
function fish_prompt
|
||||
# interactive user name @ host name, date/time in YYYY-mm-dd format and path
|
||||
set current_dir (pwd)
|
||||
|
@ -11,7 +14,7 @@ function fish_prompt
|
|||
echo -e -n "\e[36m$current_date\e[0m "
|
||||
echo -e -n "\e[31m○\e[0m"
|
||||
echo -e -n " "
|
||||
echo -e -n "\e[35m$user_loaded@$hostname\e[0m in \e[32m$current_dir\e[0m"
|
||||
echo -e -n "\e[35m$user_loaded@$hostname_host\e[0m in \e[32m$current_dir\e[0m"
|
||||
echo -e ""
|
||||
echo -e "\e[36m○\e[0m \e[32m→\e[0m "
|
||||
end
|
||||
|
|
13
scripts/brainy.theme.bash
Executable file
13
scripts/brainy.theme.bash
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1="\[\033[01;34m\]\u@\h\[\033[00m\] [\[\033[01;33m\]\w\[\033[00m\]] \[\033[01;32m\]○\[\033[00m\] \[\033[01;35m\][\[\033[00m\]\t\[\033[01;35m\]]\[\033[00m\]\n> "
|
||||
else
|
||||
PS1="\u@\h [\w] ○ [\t]\n> "
|
||||
#PS1="\u@\h [\w] o [\t]\n> "
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
18
scripts/brainy.theme.fish
Executable file
18
scripts/brainy.theme.fish
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
set TERM xterm-256color
|
||||
|
||||
set user_loaded (whoami)
|
||||
set hostname_host (hostname)
|
||||
|
||||
function fish_prompt
|
||||
# interactive user name @ host name, date/time in YYYY-mm-dd format and path
|
||||
set current_dir (pwd)
|
||||
set current_time (date '+%H:%M:%S')
|
||||
echo -e -n "\e[34m$user_loaded@$hostname_host\e[0m "
|
||||
echo -e -n "\e[33m[$current_dir]\e[0m "
|
||||
echo -e -n "\e[32m○\e[0m "
|
||||
echo -e -n "\e[35m[\e[0m$current_time\e[35m]\e[0m"
|
||||
echo -e ""
|
||||
echo -e "> "
|
||||
end
|
17
scripts/brainy.theme.zsh
Executable file
17
scripts/brainy.theme.zsh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/zsh
|
||||
|
||||
# Detect prompt color
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1="%F{blue}%n@%m %F{default}[%F{yellow}%/%f] %F{green}○ %F{magenta}[%F{default}%*%F{magenta}]
|
||||
%F{default}> "
|
||||
else
|
||||
PS1="%n@%m [%/%f] ○ [%*]
|
||||
> "
|
||||
#PS1="%n@%m [%/%f] o [%*]
|
||||
#> "
|
||||
fi
|
||||
|
44
scripts/fish-logo-colors.fish
Executable file
44
scripts/fish-logo-colors.fish
Executable file
|
@ -0,0 +1,44 @@
|
|||
#!/usr/bin/fish
|
||||
|
||||
set TERM xterm-256color
|
||||
|
||||
set os_system (lsb_release -d | tr -s " " | cut -d ":" -f 2)
|
||||
set os_system (echo {$os_system} | cut -f 2)
|
||||
set kernel (uname -r)
|
||||
set uptime (uptime | tr -s " " | cut -d "," -f 1)
|
||||
set uptime (echo {$uptime} | cut -f 2)
|
||||
#set shell="3.1.2" # Run fish --version
|
||||
set shell (fish --version | cut -d " " -f 3)
|
||||
set resolution (xrandr 2> /dev/null | grep "*" | head -1 | tr -s " " | cut -d " " -f 2)
|
||||
set user_loaded (whoami)
|
||||
set home_user {$HOME}
|
||||
set cpu_model (lscpu | grep "Model name:" | tr -s " " | cut -d ":" -f 2)
|
||||
set cpu_model (echo {$cpu_model} | tr -s " ")
|
||||
set mem_total (lsmem | grep "Total online memory:" | tr -s " " | cut -d ":" -f 2)
|
||||
set mem_total (echo {$mem_total} | cut -f 2)
|
||||
set arch_system (uname -m)
|
||||
set hostname_host (hostname)
|
||||
set session_type {$XDG_SESSION_TYPE}
|
||||
|
||||
echo -e " "
|
||||
echo -e "\e[31m :. .: \e[0m"
|
||||
echo -e "\e[31m .=: :=. \e[0m"
|
||||
echo -e "\e[31m -+ =- \e[0m \e[33mOS: \e[0m\e[35m$os_system\e[0m"
|
||||
echo -e "\e[31m :# *- \e[0m \e[33mHost: \e[0m\e[35m$hostname_host\e[0m"
|
||||
echo -e "\e[31m @= :@ \e[0m \e[33mKernel: \e[0m\e[35m$kernel\e[0m"
|
||||
echo -e "\e[31m .@- :@:\e[0m \e[33mUptime: \e[0m\e[35m$uptime\e[0m"
|
||||
echo -e "\e[31m @* *@.\e[0m \e[33mShell: \e[0m\e[35mfish $shell\e[0m"
|
||||
echo -e "\e[31m #@* :=++: =@# \e[0m \e[33mResolution: \e[0m\e[35m$resolution\e[0m"
|
||||
echo -e "\e[31m #@#: *@# .#@% \e[0m \e[33mUser: \e[0m\e[35m$user_loaded\e[0m"
|
||||
echo -e "\e[31m =%@%=: *@* :=%@@+ \e[0m \e[33mHome: \e[0m\e[35m$home_user\e[0m"
|
||||
echo -e "\e[31m -#@@@@@@@@@@@%+ \e[0m \e[33mSession: \e[0m\e[35m$session_type\e[0m"
|
||||
echo -e "\e[31m .=+%@@+=-. \e[0m \e[33mArch: \e[0m\e[35m$arch_system\e[0m"
|
||||
echo -e "\e[31m *@# \e[0m \e[33mCPU: \e[0m\e[35m$cpu_model\e[0m"
|
||||
echo -e "\e[31m +@* \e[0m \e[33mMemory: \e[0m\e[35m$mem_total\e[0m"
|
||||
echo -e "\e[31m :@: \e[0m"
|
||||
echo -e "\e[31m % \e[0m"
|
||||
echo -e "\e[31m \e[0m"
|
||||
echo -e "\e[32m # Welcome to terminal of $user_loaded\e[0m"
|
||||
echo -e -n "\e[35m # Loading terminal / \e[0m"
|
||||
echo ""
|
||||
echo ""
|
41
scripts/zsh-logo-colors.zsh
Executable file
41
scripts/zsh-logo-colors.zsh
Executable file
|
@ -0,0 +1,41 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Variables
|
||||
os_system=$(uname -o)
|
||||
kernel=$(uname -r)
|
||||
uptime=$(uptime | tr -s " " | cut -d "," -f 1)
|
||||
uptime=$(echo ${uptime})
|
||||
#shell="5.8" # Run zsh --version
|
||||
shell=$(zsh --version | cut -d " " -f 2)
|
||||
resolution=$(xrandr 2> /dev/null | grep "*" | head -1 | tr -s " " | cut -d " " -f 2)
|
||||
user_loaded=$(whoami)
|
||||
home_user="${HOME}"
|
||||
cpu_model=$(lscpu | grep "Model name:" | tr -s " " | cut -d ":" -f 2)
|
||||
cpu_model=$(echo ${cpu_model})
|
||||
mem_total=$(lsmem | grep "Total online memory:" | tr -s " " | cut -d ":" -f 2)
|
||||
mem_total=$(echo ${mem_total})
|
||||
arch_system=$(uname -m)
|
||||
hostname=$(hostname)
|
||||
session_type="${XDG_SESSION_TYPE}"
|
||||
|
||||
echo -e " "
|
||||
echo -e "\e[31m :. .: \e[0m"
|
||||
echo -e "\e[31m .=: :=. \e[0m"
|
||||
echo -e "\e[31m -+ =- \e[0m \e[33mOS: \e[0m\e[35m${os_system}\e[0m"
|
||||
echo -e "\e[31m :# *- \e[0m \e[33mHost: \e[0m\e[35m${hostname}\e[0m"
|
||||
echo -e "\e[31m @= :@ \e[0m \e[33mKernel: \e[0m\e[35m${kernel}\e[0m"
|
||||
echo -e "\e[31m .@- :@:\e[0m \e[33mUptime: \e[0m\e[35m${uptime}\e[0m"
|
||||
echo -e "\e[31m @* *@.\e[0m \e[33mShell: \e[0m\e[35mzsh ${shell}\e[0m"
|
||||
echo -e "\e[31m #@* :=++: =@# \e[0m \e[33mResolution: \e[0m\e[35m${resolution}\e[0m"
|
||||
echo -e "\e[31m #@#: *@# .#@% \e[0m \e[33mUser: \e[0m\e[35m${user_loaded}\e[0m"
|
||||
echo -e "\e[31m =%@%=: *@* :=%@@+ \e[0m \e[33mHome: \e[0m\e[35m${home_user}\e[0m"
|
||||
echo -e "\e[31m -#@@@@@@@@@@@%+ \e[0m \e[33mSession: \e[0m\e[35m${session_type}\e[0m"
|
||||
echo -e "\e[31m .=+%@@+=-. \e[0m \e[33mArch: \e[0m\e[35m${arch_system}\e[0m"
|
||||
echo -e "\e[31m *@# \e[0m \e[33mCPU: \e[0m\e[35m${cpu_model}\e[0m"
|
||||
echo -e "\e[31m +@* \e[0m \e[33mMemory: \e[0m\e[35m${mem_total}\e[0m"
|
||||
echo -e "\e[31m :@: \e[0m"
|
||||
echo -e "\e[31m % \e[0m"
|
||||
echo -e "\e[31m \e[0m"
|
||||
echo -e "\e[32m # Welcome to terminal of ${user_loaded}\e[0m"
|
||||
echo -e -n "\e[35m # Loading terminal / \e[0m"
|
||||
echo ""
|
Loading…
Reference in New Issue
Block a user