zshrc

How can you export your .bashrc to .zshrc?

£可爱£侵袭症+ 提交于 2019-12-02 14:11:51
I am trying to move to zsh from Bash. I put my .bashrc directly to my .zshrc, and it caused a lot of errors when I try to use Bash again. How can you export your .bashrc to .zshrc? Ryne Everett While lhunath's answer pushed me in the right direction, zsh does not seem to source .profile automatically. Lot's of good info on this topic can be found on this superuser post . The adaption I'm using is putting common aliases and functions in .profile and manually sourcing them as follows: .bashrc source ~/.profile .zshrc [[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile' You can't " export "

oh-my-zsh config file not loading

泄露秘密 提交于 2019-12-01 02:16:10
I am trying to get ZSH config working correctly on Mac OSX. I installed it using curl: curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh . Then I modified my zshrc file to fit my needs. It works only after I run source ~/.zshrc . But then if I come back and open a new tab or new terminal I have to do source ~/.zshrc to get the config settings to work again. Has anybody ran into this issue? I believe there is a way to make it so I don't have to do source ~/.zshrc with every new tab. I figured this out. It was due to my config file. The part of the zsh config

Fix key settings (Home/End/Insert/Delete) in .zshrc when running Zsh in Terminator Terminal Emulator

久未见 提交于 2019-11-29 21:27:59
I'm running Ubuntu 11.04. I installed the Terminator Terminal Emulator 0.95, and Zsh, version 4.3.15. I have (commonly known) problems with my keys inside the Zsh. At least these: Home/End, nothing happens Insert/Delete/PageUp/PageDown: a "~" is typed I already tried some configurations for .zshrc which should solve the problem, but no approach really worked so far. Maybe this is related to the combination of Terminator and Zsh. I took the 2 configs on this page: https://bbs.archlinux.org/viewtopic.php?pid=428669 . Does oneone have a similar configuration (especially Terminator and Zsh) and

How to disable zsh substitution/autocomplete with URL and backslashes

浪尽此生 提交于 2019-11-29 14:41:58
问题 I am using zsh with oh-my-zsh on Ubuntu:14.04. The shell autocompletes escape character with backslash when I paste a URL. For example with environment variables: $ wget http://{DEFAULT_IP}/index.html It will become: $ wget http://\{DEFAULT_IP\}/index.html How can I disable this function? 回答1: update 2019-05-12: new version(> 486fa10) oh-my-zsh have a configuration for this, add DISABLE_MAGIC_FUNCTIONS=true before source $ZSH/oh-my-zsh.sh : DISABLE_MAGIC_FUNCTIONS=true source $ZSH/oh-my-zsh

Get the `pwd` in an `alias`?

微笑、不失礼 提交于 2019-11-29 01:53:19
Is there a way I can get the pwd in an alias in my .zshrc file? I'm trying to do something like the following: alias cleanup="rm -Rf `pwd`/{foo,bar,baz}" This worked fine in bash; pwd is always the directory I've cd 'd into, however in zsh it seems that it's evaluated when the .zshrc file is first loaded and always stays as my home directory. I've tested using with a really simple alias setup, but it never changes. How can I have this change, so that calling the alias from a subdirectory always evaluates as that subdir? EDIT: not sure if this will help, but I'm using zsh via oh-my-zsh on the

oh-my-zsh themes don't show properly (background stays white)

拥有回忆 提交于 2019-11-28 16:55:12
问题 I am trying to figure out why my oh-my-zsh themes don't work properly. The colors show up properly, but background stays white (with black text). below is my /.zshrc file and current path variable: # Path to your oh-my-zsh configuration. ZSH=$HOME/.oh-my-zsh export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. export

Fix key settings (Home/End/Insert/Delete) in .zshrc when running Zsh in Terminator Terminal Emulator

僤鯓⒐⒋嵵緔 提交于 2019-11-28 16:46:58
问题 I'm running Ubuntu 11.04. I installed the Terminator Terminal Emulator 0.95, and Zsh, version 4.3.15. I have (commonly known) problems with my keys inside the Zsh. At least these: Home/End, nothing happens Insert/Delete/PageUp/PageDown: a "~" is typed I already tried some configurations for .zshrc which should solve the problem, but no approach really worked so far. Maybe this is related to the combination of Terminator and Zsh. I took the 2 configs on this page: https://bbs.archlinux.org

Get the `pwd` in an `alias`?

不问归期 提交于 2019-11-27 16:17:04
问题 Is there a way I can get the pwd in an alias in my .zshrc file? I'm trying to do something like the following: alias cleanup="rm -Rf `pwd`/{foo,bar,baz}" This worked fine in bash; pwd is always the directory I've cd 'd into, however in zsh it seems that it's evaluated when the .zshrc file is first loaded and always stays as my home directory. I've tested using with a really simple alias setup, but it never changes. How can I have this change, so that calling the alias from a subdirectory

How do zsh ansi colour codes work?

南楼画角 提交于 2019-11-27 11:14:38
问题 I want to make my hostname in my terminal orange. How do I do that? 回答1: First off, I'm not sure what terminal you're using or if it will even support the color orange. Mine supports the following: Red, Blue, Green, Cyan, Yellow, Magenta, Black & White. And here's how I get colors in my terminal: You need to first load the colors using autoload . I use the following to load the colors and assign them to meaningful names #load colors autoload colors && colors for COLOR in RED GREEN YELLOW BLUE