AcademySoftwareFoundation / AcademySoftwareFoundation/rez

manage shell history properly

Open
#1,240 0 comments 0 reactions 0 assignees View on GitHub
bug enhancement shell
Dominant language
Python
Stars
1.1k
Forks
374
Avg merge
9d 12h
Merged PRs (30d)
5

Description

Some shells (sh/csh/bash) manage history to some extent, but the support isn't very good. Specifically, bash history is stored in ram and isn't written to the histfile until a shell is closed. A new rez-env shell therefore doesn't contain recent command history.

A good fix for bash shell would be to include this step in rez shell startup:

```
# note the leading space. This causes the "history -a" cmd itself to not be stored to history
history -a
```

Wrt other shells (see https://github.com/nerdvegas/rez/issues/1234 ), there is no support for managing history at all.

Contributor guide

Open the contributing guide

Research direction

Start by locating Rez's shell startup logic and read issue #1234 for the related history behavior in other shells. Check how bash, sh, and csh startup paths are handled; done means recent bash history is available in a new rez-env shell and history support for the other named shells is addressed or clearly scoped.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, shell
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.