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.