From 193f29dd58f97ea76d68e9053105bba42b3505ab Mon Sep 17 00:00:00 2001 From: Pendosv Date: Mon, 30 Aug 2021 04:26:02 +0300 Subject: [PATCH] root --- .bash_aliases | 1 - .bashrc | 21 +++++++++++++++------ .ssh/config | 10 ++-------- README.md | 1 + 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index bb82594..a12e90c 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -45,7 +45,6 @@ alias vis='vim "+set si"' # net alias ports='netstat -tulanp' -alias sftp_hosting='sftp pendos@5.187.5.178' diff --git a/.bashrc b/.bashrc index 1bc2c49..040f6b7 100644 --- a/.bashrc +++ b/.bashrc @@ -1,12 +1,21 @@ - - if [ -f ~/.bash_aliases ]; then source ~/.bash_aliases fi -# last -PS1="\n\[\e[0;92m\]┌──(\[\e[m\]\[\e[1;34m\]\u㉿\H\[\e[m\]\[\e[0;92m\])-[\[\e[m\]\w\[\e[0;92m\]]\n└─\[\e[m\]\[\e[1;94m\]\$\[\e[m\] " +close_color='\[\e[m\]' +prompt_color='\[\033[;32m\]' +info_color='\[\033[1;34m\]' +prompt_symbol=㉿ +end_symbol='$' -# root PS1 -# PS1="\n\[\e[1;94m\]┌──(\[\e[m\]\[\e[1;31m\]\u💀\H\[\e[m\]\[\e[1;94m\])-[\[\e[m\]\w\[\e[1;94m\]]\n└─\[\e[m\]\[\e[1;31m\]\$\[\e[m\] " +if [ "$EUID" -eq 0 ]; then # Change prompt colors for root user + prompt_color='\[\033[;94m\]' + info_color='\[\033[1;31m\]' + prompt_symbol=💀 + end_symbol='#' +fi + + +# last +PS1="\n$prompt_color┌──($close_color$info_color\u$prompt_symbol\H$close_color$prompt_color)-[$close_color\w$prompt_color]\n└─$close_color$info_color$end_symbol$close_color " diff --git a/.ssh/config b/.ssh/config index fbfd7a6..a9c49c6 100644 --- a/.ssh/config +++ b/.ssh/config @@ -1,11 +1,5 @@ Host hosting - HostName 5.187.5.178 + HostName 8.8.8.8 Port 22 - User pendos - IdentityFile ~/.ssh/id_rsa - -Host router - HostName 192.168.50.1 - Port 1025 - User pendos + User username IdentityFile ~/.ssh/id_rsa diff --git a/README.md b/README.md index 4b7ea2b..041eb47 100644 --- a/README.md +++ b/README.md @@ -21,4 +21,5 @@ Host host_name ```bash ssh host_name +sftp host_name ``` \ No newline at end of file