So I am using the bash shell with st terminal emulator (issues occur with different terminal emulator also), what happens is if I paste a string of text in my shell, I got a issue like this
But if I use any other shell like zsh it doesn't have this issue, it paste just fine. It actually doesn't affect the actual command but it is kind of annoying while editing the command. I have tried other terminal emulator also, & the issue still exist, here is a gif while pasting the command
Specs which might help:
OS: Arch Linux
Shell: bash 5.1.8
WM: dwm
Terminal: st
Terminal Font: Inconsolata
My ~/.bashrc
file:
# PS1
_GREEN=$(tput setaf 2)
_RESET=$(tput sgr0)
export PS1="${_GREEN}\W \$ ${_RESET}"
Exports
export PATH=$PATH:/home/anant/.local/bin
export PATH=$PATH:/usr/bin/npm
export HISTCONTROL=ignoreboth:erasedups
export MANPAGER="nvim -c 'set ft=man' -"
export EDITOR="nvim"
export BROWSER="firefox"
Aliases
alias ls='exa -la'
alias la='exa -a'
alias ll='exa -l'
alias update="yay -Syyu --devel --noconfirm"
alias install="yay -S --noconfirm"
alias remove="yay -Rs --noconfirm"
alias config="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME"
alias configurl="config remote set-url origin"
alias giturl="git remote set-url origin"
alias v="nvim"
alias music="cd ~/Music;youtube-dl -x --audio-format mp3 --prefer-ffmpeg"
alias sx="sx sh ~/.xinitrc"
alias cat="bat"
alias less="bat"
alias fm6000="fm6000 -c blue -de dwm -n"
alias mpv="devour mpv"
alias zathura="devour zathura"
alias sxiv="devour sxiv"
alias lowriter="devour lowriter"
Personal Aliases
alias code="cd ~/git-dir/personal/codingPlayground/"
alias pythonProject="cd ~/git-dir/personal/codingPlayground/pythonProject/"
alias webProjects="cd ~/git-dir/personal/codingPlayground/webDevProject"
alias learncss="cd ~/git-dir/personal/codingPlayground/learnCSS/"
fzf
source /usr/share/fzf/completion.bash
source /usr/share/fzf/key-bindings.bash
{}
icon. – cas Jul 26 '21 at 06:03