Complex Git branch name broke all Git commands

Problem Can anyone explain what happened? […] I’d love to be able to delete that branch, but Git won’t work for me. By running git branch SSLOC-201_Implement___str__()_of_ProductSearchQuery in zsh, you did not create any branch. Instead, you accidentally defined three shell functions, called git, branch, and SSLOC-201_Implement___str__, which ignore their parameters (if any) and whose … Read more

Adding a new entry to the PATH variable in ZSH

Actually, using ZSH allows you to use special mapping of environment variables. So you can simply do: # append path+=(‘/home/david/pear/bin’) # or prepend path=(‘/home/david/pear/bin’ $path) # export to sub-processes (make it inherited by child processes) export PATH For me that’s a very neat feature which can be propagated to other variables. Example: typeset -T LD_LIBRARY_PATH … Read more

zsh compinit: insecure directories [closed]

Note: This answer is from 2012. This fixed it for me: $ sudo chmod -R 755 /usr/local/share/zsh/site-functions Credit: a post on zsh mailing list EDIT: As pointed out by @biocyberman in the comments. You may need to update the owner of site-functions as well: $ sudo chown -R root:root /usr/local/share/zsh/site-functions On my machine (OSX 10.9), … Read more

How to permanently set $PATH on Linux/Unix [closed]

You need to add it to your ~/.profile or ~/.bashrc file.  export PATH=”$PATH:/path/to/dir” Depending on what you’re doing, you also may want to symlink to binaries: cd /usr/bin sudo ln -s /path/to/binary binary-name Note that this will not automatically update your path for the remainder of the session. To do this, you should run: source … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)