bash-it
bash-it copied to clipboard
some ssh clients have problem wrapping the line when cursor reaches the end of screen
I tested with Putty and Windows Powershell (both with a powerline font configured) and Conectbot on android
As seen in the image, when cursor of the command line reaches near the end of the line, it wraps to the same line instead of going to the next one.
Following is the snipped of bash-it I've installed on .bashrc:
# Path to the bash it configuration
export BASH_IT="/root/.bash_it"
# Lock and Load a custom theme file.
# Leave empty to disable theming.
# location /.bash_it/themes/
export BASH_IT_THEME='bobby'
# (Advanced): Change this to the name of your remote repo if you
# cloned bash-it with a remote other than origin such as `bash-it`.
# export BASH_IT_REMOTE='bash-it'
# Your place for hosting Git repos. I use this for private repos.
export GIT_HOSTING='[email protected]'
# Don't check mail when opening terminal.
unset MAILCHECK
# Change this to your console based IRC client of choice.
export IRC_CLIENT='irssi'
# Set this to the command you use for todo.txt-cli
export TODO="t"
# Set this to false to turn off version control status checking within the prompt for all themes
export SCM_CHECK=true
# Set to actual location of gitstatus directory if installed
#export SCM_GIT_GITSTATUS_DIR="$HOME/gitstatus"
# per default gitstatus uses 2 times as many threads as CPU cores, you can change this here if you must
#export GITSTATUS_NUM_THREADS=8
# Set Xterm/screen/Tmux title with only a short hostname.
# Uncomment this (or set SHORT_HOSTNAME to something else),
# Will otherwise fall back on $HOSTNAME.
#export SHORT_HOSTNAME=$(hostname -s)
# Set Xterm/screen/Tmux title with only a short username.
# Uncomment this (or set SHORT_USER to something else),
# Will otherwise fall back on $USER.
#export SHORT_USER=${USER:0:8}
# Set Xterm/screen/Tmux title with shortened command and directory.
# Uncomment this to set.
#export SHORT_TERM_LINE=true
# Set vcprompt executable path for scm advance info in prompt (demula theme)
# https://github.com/djl/vcprompt
#export VCPROMPT_EXECUTABLE=~/.vcprompt/bin/vcprompt
# (Advanced): Uncomment this to make Bash-it reload itself automatically
# after enabling or disabling aliases, plugins, and completions.
# export BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE=1
# Uncomment this to make Bash-it create alias reload.
# export BASH_IT_RELOAD_LEGACY=1
# Load Bash It
export BASH_IT_THEME="powerline"
source "$BASH_IT"/bash_it.sh
export POWERLINE_PROMPT="hostname user_info scm python_venv ruby cwd"
Everything works fine on gnome terminal in the same setup.
Thanks for reporting this! Not sure what to do about it at the moment - I don't have a Windows environment to test this with. It works fine on my Mac/Linux setup from what I remember.
BTW: The posted snippet shows that you're using the bobby
theme - the screenshot and text show Powerline...
Thank you, @nwinkler
$BASH_IT_THEME
is redefined near the end of rc script to powerline... I probably forgot to delete the initial setting.
You can install putty on linux (debian have it packaged as putty
), so you can test it! I confirmed that the same problem occurs with it.
@ctodobom are you still experiencing problems?
Hi, @NoahGorny I've tested in two installations acessing through putty for linux and selecting a powerline font... both doing a git pull
on the .bash_it folder ... one of them worked and another didn't
I'll investigate what is the difference between them, but can't do right now... will update here soon.
hey @allgood thanks for putting an effort, are there any updates?
@NoahGorny ...
I just tested again... on my local machine it works great, both from putty and from powershell.
But on other servers I have bash_it installed, it didn't worked! Main problem is that I never tried before on my local station, the initial issue report was created using one of those servers, that continues not working.
All hosts I tried are running Debian Buster, I was unable to find any difference on them that justify this behavior.
I can only suppose that one or more of the packages I have installed on my desktop computer and not on remote servers is making it work.
If you have any suggestion, about a dependency of something, it would help.