mirror of
https://github.com/ellie/atuin.git
synced 2024-11-09 00:04:56 +03: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