View Issue Details

IDProjectCategoryView StatusLast Update
0007763Kali Linux[All Projects] General Bugpublic2022-06-21 09:58
Reportersamuel-kuhn Assigned Todaniruiz  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionno change required 
Product Version2022.2 
Target VersionFixed in Version 
Summary0007763: strange console user name after using the source command
DescriptionI used the source command to source a .bash_aliases file. After that I used the command source for the .bashrc file.
After that the console looked really weird. The place where it should say "samuel㉿kali" there are a bunch of numbers, letters and symbols.
When I opened another console everything looked normal again. The same thing is when I changed to root with "sudo -s". But when I exited the root, it looked the same way as before.
Probably worth to mention:
When I used the source command, that worked fine until now, the console prints a bunch of error messages before going into that weird state.
The errors:
└─$ source /home/samuel/.bashrc
Command 'shopt' not found, did you mean:
  command 'shout' from deb libshout-tools
Try: sudo apt install <deb name>
Command 'shopt' not found, did you mean:
  command 'shout' from deb libshout-tools
Try: sudo apt install <deb name>
Command 'shopt' not found, did you mean:
  command 'shout' from deb libshout-tools
Try: sudo apt install <deb name>
Command 'shopt' not found, did you mean:
  command 'shout' from deb libshout-tools
Try: sudo apt install <deb name>
complete: command not found
complete: command not found
complete: command not found
complete: command not found
complete: command not found
complete: command not found
complete: command not found
complete: command not found
complete: command not found
complete: command not found
/usr/share/bash-completion/bash_completion:1596: parse error near `|'
Steps To Reproduce$ source .bash_aliases
$ source .bashrc
Additional InformationThis is how the console looks after using the command:
\[\e]0;\u@\h: \w\a\]\[\033[;32m\]┌──(\[\033[1;34m\]\u㉿\h\[\033[;32m\])-[\[\033[0;1m\]\w\[\033[;32m\]]\n\[\033[;32m\]└─\[\033[1;34m\]$\[\033[0m\] sudo -s
                    
┌──(root㉿kali)-[/home/samuel]
└─# exit
                                                                                                               
\[\e]0;\u@\h: \w\a\]\[\033[;32m\]┌──(\[\033[1;34m\]\u㉿\h\[\033[;32m\])-[\[\033[0;1m\]\w\[\033[;32m\]]\n\[\033[;32m\]└─\[\033[1;34m\]$\[\033[0m\]
                                                                                                               
\[\e]0;\u@\h: \w\a\]\[\033[;32m\]┌──(\[\033[1;34m\]\u㉿\h\[\033[;32m\])-[\[\033[0;1m\]\w\[\033[;32m\]]\n\[\033[;32m\]└─\[\033[1;34m\]$\[\033[0m\] cd ~
                                                                                                               
\[\e]0;\u@\h: \w\a\]\[\033[;32m\]┌──(\[\033[1;34m\]\u㉿\h\[\033[;32m\])-[\[\033[0;1m\]\w\[\033[;32m\]]\n\[\033[;32m\]└─\[\033[1;34m\]$\[\033[0m\]

Activities

daniruiz

2022-06-21 09:58

manager   ~0016309

You are using zsh not bash so you can't source the file .bashrc. ZSH uses .zshrc instead
To check which shell you're using just type `echo $0`. If you want to run bash just type `bash`. And then if you want to make the switch to bash permanent yo can do so in kali-tweaks

Issue History

Date Modified Username Field Change
2022-06-20 19:57 samuel-kuhn New Issue
2022-06-21 09:58 daniruiz Note Added: 0016309
2022-06-21 09:58 daniruiz Assigned To => daniruiz
2022-06-21 09:58 daniruiz Status new => closed
2022-06-21 09:58 daniruiz Resolution open => no change required