Skip to content

Remove redundant _root() function #789

@jishnukoliyadan

Description

@jishnukoliyadan

Title :

Remove Redundant _root() Function in .tmux.conf

Description :

The _root() function in .tmux.conf is no longer needed since commit 5c41188, as the code depending on it was modified. It can be safely removed.

Here's the code block that can be removed:

# _root() {
#   pane_pid=${1:-$(tmux display -p '#{pane_pid}')}
#   pane_tty=${2:-$(tmux display -p '#{b:pane_tty}')}
#   root=$3
#
#   username=$(_username "$pane_pid" "$pane_tty" false)
#
#   [ "$username" = "root" ] && echo "$root"
# }

And here's the reference to the relevant section : View in .tmux.conf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions