dotfiles
dotfiles copied to clipboard
[BUG] SCP from remote computer's doesn't work due to terminal outputting default 'Start Hyprland with command Hyprland'
Describe the bug
Whenever I run ssh user@host echo, it outputs 'Start Hyprland with command Hyprland'. This prevents file transfer tools such as SCP from working. I have edited 30-autostart for both bashrc and zhsrc to print something other than that but the changes were not reflected in the echo command.
Steps to reproduce
- Open a second computer terminal.
- enter ssh user@host echo
- Observe the output
Expected behavior
It would be expected that it does not produce an output that way it is compatible with tools such as SCP.
Screenshots
No response
Distribution
Other (please specify below)
If Other, specify
Fedora Linux
Additional context
I've found that adding a check in the ~/.bashrc file to see if it's an interactive terminal fixes it.
if [[ $- == *i* ]]; then
for f in ~/.config/bashrc/*; do
if [ ! -d $f ]; then
c=`echo $f | sed -e "s=.config/bashrc=.config/bashrc/custom="`
[[ -f $c ]] && source $c || source $f
fi
done
if [ -f ~/.bashrc_custom ]; then
source ~/.bashrc_custom
fi
fi
To me this indicates one of the config files is missing the guard.
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
I will remove this output. It’s not needed anymore.