Skip to content

Place binds in a tty detection block? #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MattMencel opened this issue Apr 4, 2017 · 1 comment
Open

Place binds in a tty detection block? #19

MattMencel opened this issue Apr 4, 2017 · 1 comment

Comments

@MattMencel
Copy link

When I scp to a host that I've added the sensible.bash to my ~/.bashrc, I see bind warnings.

/home/matt/bin/sensible.bash: line 28: bind: warning: line editing not enabled

I placed the binds in a TTY detection block like explained here: https://superuser.com/questions/892658/remote-ssh-commands-bash-bind-warning-line-editing-not-enabled

if [ -t 1 ]
then
  # standard output is a tty
  # do interactive initialization

  # Enable history expansion with space
  # E.g. typing !!<space> will replace the !! with your last command
  bind Space:magic-space
  ...
fi

Works well for this.

@mrzool
Copy link
Owner

mrzool commented Apr 5, 2017

#18 would probably be a better solution to this and related issues, will definitely look into it.

gnzsnz added a commit to gnzsnz/dotfiles that referenced this issue Aug 28, 2023
place bind in a tty detection block,
mrzool/bash-sensible#19

defined .inputrc file, example https://www.gnu.org/software/bash/manual/html_node/Sample-Init-File.html

gnupg settings

disable gpg agent, as it runs as a system service

slit setup across files

typos

working version, sexy bash prompt support

beta release

fixed config alias to use brew which

changed README to use ssh rather than http

removed from bash_profile call to profile, as it might call twice bashrc

fix ls colors for linux. bash_alias was overwriting the dircolors alias

linux fixes, fix byobu, update gpg-agent

new genv alias, updated mail in gitconfig

fixed ssh-agent for linux, source highlight for linux and dircolors in osx

fix colorizer condition

fix ll alias, remove -G parameter to allow display group ownership

less colours for linux

remove less line number

pygments and dircolor theme support

fix dircolors in byobu

remove debian_prompt from bashrc

alias f2b

alias f2b

add colors to git and default master branch

alias psmem and pscpu

fix pyenv

reverse lt and left alias, sudo alias, alias to purge deb packages.

alias for reboot-required

added git aliases

update repo address in README.md

updated PATH for multipass aliases

clean up PATH

config advice.ignoredHook false

remove auto retrieve key from dirmngr.conf

ammend pyenv virtualenv-init statement

fix pipup alias to support local repositories with an @ symbol.

lsurl function in bash_aliases it will list a url index content

fix space in python REPL due to inputrc magic space

remove gnupg conf files, trust default settings.

add check for pygmentize and support for osx amd64

add and comment default brew completion

update .config/one-dark.dircolors

add source

stow ignore file, updated README, colors, lots of colors

fix ssh agent error in linux

fix missing en_US.utf8 locale, set C.utf8 as fallback

jsonpp alias

set gpg-agent as agent for ssh

add logic to call gpgconf only when it's installed

fix locale error

fix locale error

disable locale

update readme, set standard brew bash completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants