zsh

I've used zsh for quite a while, and switched from oh-my-zsh to antigen a few months ago. It works fine for me even if the startup performance is a bit bad in my cygwin/windows work environment...

history

I used zsh with its share history feature. It is a nice feature but sometimes it is very annoying. What I want to have is a solution where I can scroll through my previous commands, but search through the entire history even those I used on other tmux windows/panes.

I found a solution which looks like this:



# move throug local history, search everything bindkey "" up-line-or-local-history bindkey "" down-line-or-local-history bindkey "OA" up-line-or-history # [CTRL] + Cursor up bindkey "OB" down-line-or-history # [CTRL] + Cursor down up-line-or-local-history() { zle set-local-history 1 zle up-line-or-history zle set-local-history 0 } zle -N up-line-or-local-history down-line-or-local-history() { zle set-local-history 1 zle down-line-or-history zle set-local-history 0 } zle -N down-line-or-local-history

This allows me to only have the local history for scrolling through commands, but searching is performed within the whole history

zsh script

This is my new blog. It may contain interesting thins, or not. The articles may cover some of the following topics: parenting, coding, vim, infrastructure, public transport troubles, gadgets, recipes, ...

Who I am

I am a software developer, housband and father who likes to learn new stuff. I like food, cooking, gadgets. I love my daughter and my wife. I live and work in Munich. And I really love that city.

Links

https://github.com/m42e

Social Networks

Well a few weeks ago I decided to quit nearly all the social networks. They produce a lot of white-bread information I do not take care of. But somehow you read your "streams" multiple times a day so you don't miss the one of a thousand news you are interested in. That's the reason I quit.

Contact me

matthias-blog@bilger.info