Skip to content

Commit

Permalink
follow links to root
Browse files Browse the repository at this point in the history
  • Loading branch information
chisui committed Dec 31, 2023
1 parent fd0facc commit 8b86281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nix-shell.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function nix-shell() {
# if you use --pure you get bash
command nix-shell "$@"
else
NIX_EXECUTING_SHELL=$(readlink /proc/$$/exe)
NIX_EXECUTING_SHELL=$(readlink -f /proc/$$/exe)
if [[ -z "$NIX_EXECUTING_SHELL" ]] && command -v lsof &> /dev/null
then
NIX_EXECUTING_SHELL=$(lsof -p $$ | awk '$4=="txt" {print $9}' | head -n 1)
Expand Down

0 comments on commit 8b86281

Please sign in to comment.