Giter Site home page Giter Site logo

Comments (4)

erikw avatar erikw commented on May 21, 2024

Strange. Can you paste the results of :

cd ~/path/to/non-git-svn-hg/dir
bash -x ~/path/to/segments/vcs_branch.sh

from tmux-powerline.

DevonVille avatar DevonVille commented on May 21, 2024

bash -x ~/.local/lib/tmux-powerline/segments/vcs_branch.sh

segment_path=/home/my-home/.local/lib/tmux-powerline/segments
source /home/my-home/.local/lib/tmux-powerline/segments/../lib.sh
segments_dir=segments
declare entries
'[' -n '' -a '' == true ']'
separator_left_bold=$'\342\227\200'
separator_left_thin=$'\342\235\256'
separator_right_bold=$'\342\226\266'
separator_right_thin=$'\342\235\257'
export GREP_OPTIONS=--color=never
GREP_OPTIONS=--color=never
first_segment_left=1
get_tmux_cwd
tmux display -p TMUXPWD_#I_#P
local env_name=TMUXPWD_2_2
tmux show-environment
grep TMUXPWD_2_2
local env_val=TMUXPWD_2_2=/etc/nginx
[[ ! TMUXPWD_2_2=/etc/nginx =~ unknown variable ]]
echo TMUXPWD_2_2=/etc/nginx
grep -PZo '(?<==).*$'
local tmux_pwd=/etc/nginx
echo /etc/nginx
tmux_path=/etc/nginx
cd /etc/nginx
branch_symbol=$'\342\255\240'
git_colour=colour5
git_svn_colour=colour34
svn_colour=colour220
hg_colour=colour45
branch=
parse_git_branch
type git
'[' 0 -ne 0 ']'
git branch
branches=
'[' 128 -ne 0 ']'
return
'[' -n '' ']'
parse_svn_branch
type svn
'[' 0 -ne 0 ']'
'[' '!' -d .svn/ ']'
return
'[' -n '' ']'
parse_hg_branch
type hg
'[' 1 -ne 0 ']'
return
'[' -n '/home/my-home/.local/lib/tmux-powerline/segments/vcs_branch.sh: line 67: type: hg: not found' ']'
branch='/home/my-home/.local/lib/tmux-powerline/segments/vcs_branch.sh: line 67: type: hg: not found'
'[' -n '/home/my-home/.local/lib/tmux-powerline/segments/vcs_branch.sh: line 67: type: hg: not found' ']'
echo '/home/my-home/.local/lib/tmux-powerline/segments/vcs_branch.sh: line 67: type: hg: not found'

from tmux-powerline.

erikw avatar erikw commented on May 21, 2024

Does that fix it?

from tmux-powerline.

DevonVille avatar DevonVille commented on May 21, 2024

Yep yep, excellent. Thanks.

from tmux-powerline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.