From cc5691a77c2ad2927a42106eb8b9c724e6fda692 Mon Sep 17 00:00:00 2001 From: spinach <19keegandeppe@gmail.com> Date: Tue, 4 Apr 2023 19:26:01 -0400 Subject: [PATCH] fixed file explorer --- bin/rofi-files | 2 +- shells/zsh/zprofile | 2 +- shells/zsh/zshrc | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/rofi-files b/bin/rofi-files index b9024ea..c9bfe4e 100755 --- a/bin/rofi-files +++ b/bin/rofi-files @@ -15,7 +15,7 @@ if [ "$last_ps" == "tmux" ] ; then current_pane=$(tmux list-panes | grep '(active)' | grep -o '^[0-9]') cwd=$(tmux display-message -p -t $current_pane -F '#{pane_current_path}') else - cwd=$(readlink -e /proc/${children[-2]}/cwd) + cwd=$(readlink -e /proc/${children[-1]}/cwd) fi # change to the directory diff --git a/shells/zsh/zprofile b/shells/zsh/zprofile index 8acfdb8..5c68911 100644 --- a/shells/zsh/zprofile +++ b/shells/zsh/zprofile @@ -1,5 +1,5 @@ # go path -export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin +export PATH=$PATH:/usr/local/go/bin:$HOME/.local/share/go/bin export PATH=$PATH:$HOME/.config/rofi/bin # editor diff --git a/shells/zsh/zshrc b/shells/zsh/zshrc index 88f2b7d..36fcd0c 100644 --- a/shells/zsh/zshrc +++ b/shells/zsh/zshrc @@ -20,7 +20,6 @@ fi # fixing gopath and binaries export GOPATH="$HOME/.local/share/go" -export PATH=$GOPATH/bin:$PATH # Path to your oh-my-zsh installation.