From 43b0708769eb61392050045b881f8e6ba39c5b66 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 26 May 2023 00:40:40 +0200 Subject: Massive update to posts, archetypes Added a archetypes for creating notes and posts so it auto-populates fields. Fixed existing posts so they align with the rule of 80 columns now. --- content/posts/2020-09-08-bind-warning-on-login.md | 28 +++++++++++++++++------ 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'content/posts/2020-09-08-bind-warning-on-login.md') diff --git a/content/posts/2020-09-08-bind-warning-on-login.md b/content/posts/2020-09-08-bind-warning-on-login.md index 62c421d..d5d725e 100644 --- a/content/posts/2020-09-08-bind-warning-on-login.md +++ b/content/posts/2020-09-08-bind-warning-on-login.md @@ -1,15 +1,23 @@ --- title: Fix bind warning in .profile on login in Ubuntu url: bind-warning-on-login-in-ubuntu.html -date: 2020-09-08 +date: 2020-09-08T12:00:00+02:00 draft: false --- -Recently I moved back to [bash](https://www.gnu.org/software/bash/) as my default shell. I was previously using [fish](https://fishshell.com/) and got used to the cool features it has. But, regardless of that, I wanted to move to a more standard shell because I was hopping back and forth with exporting variables and stuff like that which got pretty annoying. +Recently I moved back to [bash](https://www.gnu.org/software/bash/) as my +default shell. I was previously using [fish](https://fishshell.com/) and got +used to the cool features it has. But, regardless of that, I wanted to move to +a more standard shell because I was hopping back and forth with exporting +variables and stuff like that which got pretty annoying. -So I embarked on a mission to make [bash](https://www.gnu.org/software/bash/) more like [fish](https://fishshell.com/) and in the process found that I really missed autosuggest with TAB on changing directories. +So I embarked on a mission to make [bash](https://www.gnu.org/software/bash/) +more like [fish](https://fishshell.com/) and in the process found that I really +missed autosuggest with TAB on changing directories. -I found a nice alternative that emulates [zsh](http://zsh.sourceforge.net/) like autosuggestion and autocomplete so I added the following to my `.bashrc` file. +I found a nice alternative that emulates [zsh](http://zsh.sourceforge.net/) +like autosuggestion and autocomplete so I added the following to my `.bashrc` +file. ```bash bind "TAB:menu-complete" @@ -19,13 +27,18 @@ bind "set menu-complete-display-prefix on" bind '"\e[Z":menu-complete-backward' ``` -I haven't noticed anything wrong with this and all was working fine until I restarted my machine and then I got this error. +I haven't noticed anything wrong with this and all was working fine until I +restarted my machine and then I got this error. ![Profile bind error](/assets/profile-bind-error/error.jpg) -When I pressed OK, I got into the [Gnome shell](https://wiki.gnome.org/Projects/GnomeShell) and all was working fine, but the error was still bugging me. I started looking for the reason why this is happening and found a solution to this error on [Remote SSH Commands - bash bind warning: line editing not enabled](https://superuser.com/a/892682). +When I pressed OK, I got into the [Gnome shell](https://wiki.gnome.org/Projects/GnomeShell) +and all was working fine, but the error was still bugging me. I started looking +for the reason why this is happening and found a solution to this error on +[Remote SSH Commands - bash bind warning: line editing not enabled](https://superuser.com/a/892682). -So I added a simple `if [ -t 1 ]` around `bind` statements to avoid running commands that presume the session is interactive when it isn't. +So I added a simple `if [ -t 1 ]` around `bind` statements to avoid running +commands that presume the session is interactive when it isn't. ```bash if [ -t 1 ]; then @@ -38,3 +51,4 @@ fi ``` After logging out and back in the problem was gone. + -- cgit v1.2.3