mirror of
https://github.com/atuinsh/atuin.git
synced 2024-12-28 01:49:33 +01:00
Don't pollute shell environment - remove 'id' variable (#408)
This commit is contained in:
parent
14b30606a5
commit
ab294cde34
@ -2,7 +2,7 @@ ATUIN_SESSION=$(atuin uuid)
|
||||
export ATUIN_SESSION
|
||||
|
||||
_atuin_preexec() {
|
||||
id=$(atuin history start "$1")
|
||||
local id; id=$(atuin history start "$1")
|
||||
export ATUIN_HISTORY_ID="$id"
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ export ATUIN_SESSION=$(atuin uuid)
|
||||
export ATUIN_HISTORY="atuin history list"
|
||||
|
||||
_atuin_preexec(){
|
||||
id=$(atuin history start "$1")
|
||||
local id; id=$(atuin history start "$1")
|
||||
export ATUIN_HISTORY_ID="$id"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user