`bash: declare: PROMPT_COMMAND: not found` displayed on shell initiation
this may not be a bug. something just may not be set right and i need help. i have seen that there are others who have had this problem 1 2
rxvt-terminal did not have it.
System: Clear linux 35180
Shell: GNU bash, version 5.1.8(1)-release (x86_64-generic-linux-gnu)
Terminals:
$ gnome-terminal --version
# GNOME Terminal 3.42.0 using VTE 0.66.0 +BIDI +GNUTLS +ICU +SYSTEMD
$ echo $TERM
xterm-256color
$ xterm -v
XTerm(369)
$ echo $TERM
xterm
/usr/share/defaults/etc/bash.bashrc
:
# Use global profile when available
if [ -f /usr/share/defaults/etc/profile ]; then
. /usr/share/defaults/etc/profile
fi
# allow admin overrides
if [ -f /etc/profile ]; then
. /etc/profile
fi
~/.profile
:
# ~/.profile: executed by Bourne-compatible login shells.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# path set by /etc/profile
# export PATH
# mesg n
~/.bashrc
:
fi
# allow admin overrides
if [ -f /etc/profile ]; then
. /etc/profile
fi
alias apr='sudo swupd bundle-remove' apl='swupd bundle-list' apa='sudo swupd bundle-add' aps='swupd search' apu='sudo swupd update' ap='sudo swupd' ls='ls --color=auto -a' vi=nvim cb='flatpak run org.chromium.Chromium' ffb='flatpak run org.mozilla.firefox' pls='sudo !!' kpubify=/opt/kepubify-linux-64bit
vi=~/.config/nvim/init.vim
cd Desktop
set -o noclobber
PATH+=:/opt/bin
~/.bash_history
:
mount /dev/sda
mount --help
mount --target /dev/sda
mount
mount /dev/sda /media/usb0
mount /dev/sda /media/
sudo mount /dev/sda /media/
umount /media/
umount /media
umount /dev/sda
umount /dev/sda1
umount /dev/sda
umount /dev/sda
df
mkdir /media
umount /dev/sda
sudo umount /dev/sda
df
lsblk
df
ls
ls /dev/sda1
ls /dev/sda1/
ls /run/media/glanard/0ED9-7890
ls ~/Desktop/
ls ~/Downloads/
mkdir /run/media/glanard/0ED9-7890/delete_this
mv ~/Downloads/*.pdf /run/media/glanard/0ED9-7890/delete_this
ls /run/media/glanard/0ED9-7890/delete_this
/run/media/glanard/0ED9-7890/delete_this/'Windows Speech Recognition commands.pdf'
eog /run/media/glanard/0ED9-7890/delete_this/'Windows Speech Recognition commands.pdf'
cat bundle_mapping.txt
evine
evince
echo evince: gnome document veiwer >> bundle_mapping.txt
cat bundle_mapping.txt
evince /run/media/glanard/0ED9-7890/delete_this/'Windows Speech Recognition commands.pdf'
evince /run/media/glanard/0ED9-7890/delete_this/'How to use Speech Recognition in Windows.pdf'
evince /run/media/glanard/0ED9-7890/delete_this/'Windows Speech Recognition commands.pdf'
evince /run/media/glanard/0ED9-7890/delete_this/'Windows Speech Recognition commands.pdf'&
evince /run/media/glanard/0ED9-7890/delete_this/'How to use Speech Recognition in Windows.pdf'&
curl https://eus-streaming-video-rt-microsoft-com.akamaized.net/3b75f9ff-61df-4075-84e0-eedb371b02c4/25533cad-191c-43da-95e9-d62fc026_3400.mp4 -Lo speech_recognition0.mp4
ls
cb speech_recognition0.mp4
curl https://eus-streaming-video-rt-microsoft-com.akamaized.net/25fac4da-bb6a-495f-8ac5-a65a66781c8e/522b433b-135f-46d2-a08a-ed5b0843_3400.mp4 -Lo speech_recognition1.mp4
curl https://eus-streaming-video-rt-microsoft-com.akamaized.net/25fac4da-bb6a-495f-8ac5-a65a66781c8e/522b433b-135f-46d2-a08a-ed5b0843_3400.mp4 -Lo speech_recognition1.mp4
mv *.mp4 /run/media/glanard/0ED9-7890/delete_this/
umount /dev/sda1
exit
exit
ps
ps -a
evince
bash
reboot
bash
umount /dev/sda1
eject /dev/sda1
ps aux
ps aux|grep evince
declare
echo $PROMPT_COMMAND
umount /dev/sda1
bash
exit
bash
exit
bash
exit
bash
$ echo $PROMT_COMMAND
__vte_prompt_command
/usr/share/defaults/etc/profile.d/vte.sh
:
# Copyright © 2012 Christian Persch
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Not bash or zsh?
[ -n "${BASH_VERSION:-}" -o -n "${ZSH_VERSION:-}" ] || return 0
# Not an interactive shell?
[[ $- == *i* ]] || return 0
# Not running under vte?
[ "${VTE_VERSION:-0}" -ge 3405 ] || return 0
# TERM not supported?
case "$TERM" in
xterm*|vte*|gnome*) :;;
*) return 0 ;;
esac
__vte_osc7 () {
printf "\033]7;file://%s%s\033\\" "${HOSTNAME}" "$(/usr/libexec/vte-urlencode-cwd)"
}
__vte_prompt_command() {
local pwd='~'
[ "$PWD" != "$HOME" ] && pwd=${PWD/#$HOME\//\~\/}
pwd="${pwd//[[:cntrl:]]}"
printf "\033]0;%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${pwd}"
__vte_osc7
}
if [[ -n "${BASH_VERSION:-}" ]]; then
# Newer bash versions support PROMPT_COMMAND as an array. In this case
# only add the __vte_osc7 function to it, and leave setting the terminal
# title to the outside setup.
# On older bash, we can only overwrite the whole PROMPT_COMMAND, so must
# use the __vte_prompt_command function which also sets the title.
if [[ "$(declare -p PROMPT_COMMAND)" =~ "declare -a" ]]; then
PROMPT_COMMAND+=(__vte_osc7)
else
PROMPT_COMMAND="__vte_prompt_command"
fi
elif [[ -n "${ZSH_VERSION:-}" ]]; then
precmd_functions+=(__vte_osc7)
fi
return 0