Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 22 04:32
    libinvarghese commented #701
  • Jan 13 19:58
    unixorn commented #717
  • Jan 13 17:52
    philoserf commented #717
  • Jan 09 22:24
    Sarke commented #698
  • Jan 09 21:57
    Sarke commented #698
  • Jan 09 21:49
    Sarke commented #698
  • Jan 05 23:33
    prateeka commented #659
  • Jan 01 12:04
    rohitchormale commented #710
  • Jan 01 11:58
    rohitchormale commented #710
  • Dec 18 2021 09:11
    codingwesley commented #655
  • Dec 13 2021 16:46
    tilmanmayer commented #701
  • Dec 13 2021 16:45
    tilmanmayer commented #701
  • Dec 01 2021 00:48
    0xflotus opened #733
  • Nov 30 2021 19:02
    xianggaolinkedin opened #732
  • Nov 21 2021 17:17
    iasha102 commented #701
  • Nov 21 2021 08:41
    IvanGrund commented #632
  • Nov 21 2021 08:32
    IvanGrund commented #632
  • Nov 21 2021 08:32
    IvanGrund commented #632
  • Nov 21 2021 08:31
    IvanGrund commented #632
  • Nov 21 2021 08:30
    IvanGrund commented #632
Gerry Agbobada
@gagbo
"breaking" meaning that the prompt theme is zsh default, and when I change theme with antigen theme robbyrussell, I have messages from zsh telling that git_prompt_info is not found
it goes back to normal if I antigen reset and start a new terminal emulator
Ben Klein
@robobenklein
What does your tmux.conf look like?
Gerry Agbobada
@gagbo
I just pushed the few ommits I had today, but it never worked as far as I remember
Ben Klein
@robobenklein
If it's a problem with the cache, maybe creating separate caches for tmux and normal shell will help? Here's how I do mine: https://gitlab.com/robobenklein/configs/blob/2a9c3ed29df402e3a1caee5e4890c4eb8dc085d2/zsh/zshrc#L209
Gerry Agbobada
@gagbo
I supposed it was the cache but I'm really not sure
It didn't work. I guess I'll just go back to maintaining multiple repos then, I just have no idea at this point
Ben Klein
@robobenklein
If it is really just a problem of sourcing the rc multiple times, just set ZSHRC_LOADED=true at the end and do a check for it in the beginning, but I think it would be something else causing the problem
and it's not partly the problem that you have both an antigenrc and a zshrc? Just wondering how that is set up
Gerry Agbobada
@gagbo
I used to try antigenrc to see if it changed the behaviour. Nothing changed so I removed the call to antigenrc in zshrc
I did not clean up the antigenrc file, but since I don't call antigen init in zshrc now it doesn't matter
Ben Klein
@robobenklein
try using exec zsh instead of sourcing the file again
I know I was having a bunch of problems with the theme switching because theme unloading is a universal problem
Gerry Agbobada
@gagbo
exec zsh happens without any issue
so that means I have to "tmux-guard" the antigen part of .zshrc ? because using 'tmux' will source it anyway
Ben Klein
@robobenklein
tmux is supposed to spawn a new, completely clean zsh process, without any leftover state from your current shell instance
Gerry Agbobada
@gagbo
And then I need to antigen reset to get to normal state
Ben Klein
@robobenklein
yep that literally looks like the zshrc is just being sourced twice on startup... I suspect it's a problem to be solved with tmux conf
potentially related? : ChrisJohnsen/tmux-MacOSX-pasteboard#23
Gerry Agbobada
@gagbo
I'll check this out then, thanks
Ben Klein
@robobenklein
it could potentially also be that source .zshrc is located in another RC file, check stuff like .profile, /etc/zsh/*rc files, etc
Gerry Agbobada
@gagbo
it works with setting default-shell back to bash and default-command to zsh. Thanks @robobenklein
Iacopo Isimbaldi
@isiachi
Hi All
Why do we need to add all the bundles to the PATH variable?
Is it required for any reason?
If I enable kubectl bundle, then when I will try to tab complete my kubectl command, the terminal will get stuck between kubectl and kubectl.plugin.zsh
Ben Klein
@robobenklein
I also didn't like that fact, but this is what I did: https://github.com/robobenklein/configs/blob/2a9c3ed29df402e3a1caee5e4890c4eb8dc085d2/zsh/zshrc#L218
  # Remove paths that start with $HOME/.antigen/
  antigen_fullpath=$(zrllink "$HOME/.antigen/" )
  path=( ${path%"${antigen_fullpath}/*"} )
Iacopo Isimbaldi
@isiachi
@robobenklein Thanks I've done the same thing, just slightly different
# Remove paths that start with $HOME/.antigen/
antigen_fullpath="${HOME}/.antigen"
path=( ${path%${antigen_fullpath}/*} )
Algy
@APIUM
Hey guys, when I load zsh I get
-antigen-parse-args:78: command not found: #
Intended to say more, but looked through all my configs and couldn't find anything remotely relevant on any line 68 or 78, also looked through the source for antigen-parse-args and didn't find anything. Has anybody had this issue?
Ben Klein
@robobenklein
Could you paste the relevant function lines here from your install?
Algy
@APIUM

31 # Parse the given arguments. (Will overwrite the above values). 32 eval "$(-antigen-parse-args \ 33 'url?, loc? ; branch:?, no-local-clone?, btype:?' \ 34 "$@")"

206 eval "$(-antigen-parse-args 'url ; update?, verbose?' "$@")" 207 shift $#

Algy
@APIUM
Sorry for the spam, made a gist with the antigen-parse-args function, the two calls I could find are above. https://gist.github.com/APIUM/d5b2a49f3092ac39b648a7831c99046d
Ben Klein
@robobenklein
that is very bizarre indeed, could you which -antigen-parse-args and give that output instead?
Algy
@APIUM
I get bad option -n with that as is, when I escape the - I get the same thing. Doing antigen-parse-argsgives me antigen-parse-args not found. I assume I'm doing something wrong?
Ben Klein
@robobenklein
oh my b, which -- -antigen-parse-args
Algy
@APIUM
Ben Klein
@robobenklein

Perhaps something from

        local arg="${1#--}" 
        if [[ $arg != *=* ]]
        then
            local name="$arg" 
            local value='' 
        else
            local name="${arg%\=*}" 
            local value="${arg#*=}" 
        fi

?

those are the only two instances of # in there so....
Algy
@APIUM
I'll have to have a play around, thank you.
Algy
@APIUM
Commenting out any combination of those lines seems to be a no-go. I might just reinstall.
Pavel Mishkovich
@pavelexpertov_gitlab
Hello! I am having trouble finding the source files for the plugins I installed using antigen. Where do they usually get stored?
Augusto Gonzalez
@4uGuSt0o_twitter
Hello Guys. I am trying to use zsh as the main terminal
but I do have problems to do so
I already install antigen