This commit is contained in:
TheK4n 2021-08-30 04:26:02 +03:00
parent 7ba18eca4f
commit 193f29dd58
4 changed files with 18 additions and 15 deletions

View File

@ -45,7 +45,6 @@ alias vis='vim "+set si"'
# net # net
alias ports='netstat -tulanp' alias ports='netstat -tulanp'
alias sftp_hosting='sftp pendos@5.187.5.178'

21
.bashrc
View File

@ -1,12 +1,21 @@
if [ -f ~/.bash_aliases ]; then if [ -f ~/.bash_aliases ]; then
source ~/.bash_aliases source ~/.bash_aliases
fi fi
# last close_color='\[\e[m\]'
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\] " prompt_color='\[\033[;32m\]'
info_color='\[\033[1;34m\]'
prompt_symbol=
end_symbol='$'
# root PS1 if [ "$EUID" -eq 0 ]; then # Change prompt colors for root user
# 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\] " 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 "

View File

@ -1,11 +1,5 @@
Host hosting Host hosting
HostName 5.187.5.178 HostName 8.8.8.8
Port 22 Port 22
User pendos User username
IdentityFile ~/.ssh/id_rsa
Host router
HostName 192.168.50.1
Port 1025
User pendos
IdentityFile ~/.ssh/id_rsa IdentityFile ~/.ssh/id_rsa

View File

@ -21,4 +21,5 @@ Host host_name
```bash ```bash
ssh host_name ssh host_name
sftp host_name
``` ```