Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15632

Re: Feature request: output/send \033]7; file:///the/current/dir\033\\ on directory change

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: Feature request: output/send \033]7; file:///the/current/dir\033\\ on directory change
Date Mon, 25 Nov 2019 08:53:53 -0500
Lines 29
Approved bug-bash@gnu.org
Message-ID <mailman.2571.1574690064.13325.bug-bash@gnu.org> (permalink)
References <b55874243158a37fb81e196106032054@ifohancroft.com> <ddd4a3e7-e1f5-482b-a122-8acf51204d98@ifohancroft.com> <20191125135353.GK851@eeg.ccf.org>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1574690065 2377 209.51.188.17 (25 Nov 2019 13:54:25 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
Mail-Followup-To bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <ddd4a3e7-e1f5-482b-a122-8acf51204d98@ifohancroft.com>
User-Agent Mutt/1.10.1 (2018-07-13)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 139.137.100.1
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20191125135353.GK851@eeg.ccf.org>
X-Mailman-Original-References <b55874243158a37fb81e196106032054@ifohancroft.com> <ddd4a3e7-e1f5-482b-a122-8acf51204d98@ifohancroft.com>
Xref csiph.com gnu.bash.bug:15632

Show key headers only | View raw


On Mon, Nov 25, 2019 at 02:08:04PM +0200, IFo Hancroft wrote:
> I have the following feature request:
> 
> Output/send \033]7;file:///the/current/dir\033\\ on directory change.

cd() {
    builtin cd "$@" &&
    printf '\e]7;file://%s\a' "$PWD"
}

pushd() {
    builtin pushd "$@" &&
    printf '\e]7;file://%s\a' "$PWD"
}

popd() {
    builtin popd "$@" &&
    printf '\e]7;file://%s\a' "$PWD"
}

> TL;DR:
> It makes sense for the shell to output it on directory change.
> Everyone can take advantage of that.
> It will be clean solution.

You can do it yourself, by putting the functions I just gave you into
your ~/.bashrc file.  This kind of change doesn't belong in the shell
itself, because it will *not* be a "clean solution" for everybody.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Feature request: output/send \033]7; file:///the/current/dir\033\\ on directory change Greg Wooledge <wooledg@eeg.ccf.org> - 2019-11-25 08:53 -0500

csiph-web