Don't pollute shell environment - remove 'id' variable (#408)

This commit is contained in:
Jakub Jirutka 2022-05-16 23:13:17 +02:00 committed by GitHub
parent 14b30606a5
commit ab294cde34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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"
}

View File

@ -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"
}