All Projects → ThiefMaster → zsh-config

ThiefMaster / zsh-config

Licence: other
My ZSH config

Programming Languages

shell
77523 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to zsh-config

Ohmyzsh
🙃 A delightful community-driven (with 1900+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
Stars: ✭ 138,057 (+600147.83%)
Mutual labels:  zsh, zsh-configuration
zhooks
Display Zsh hook functions and arrays
Stars: ✭ 36 (+56.52%)
Mutual labels:  zsh, zsh-configuration
Zimfw
Zim: Modular, customizable, and blazing fast Zsh framework
Stars: ✭ 2,219 (+9547.83%)
Mutual labels:  zsh, zsh-configuration
zshrc
📝 Zsh Configuration for nerds with zplug
Stars: ✭ 28 (+21.74%)
Mutual labels:  zsh, zsh-configuration
zsh-config
Faster and enjoyable ZSH (maybe) !!!
Stars: ✭ 64 (+178.26%)
Mutual labels:  zsh, zsh-configuration
Dot
These are my dot files. I've primarily been a MacOS user for most of the time I've been collecting dotfiles, but I've recently switched to Linux. I primarily use Arch, Arco, Manjaro, or some other Arch based distro; so that's where I take my que.
Stars: ✭ 232 (+908.7%)
Mutual labels:  zsh
tmux-zsh-vim-titles
Unified terminal titles in tmux, zsh, and vim/nvim
Stars: ✭ 28 (+21.74%)
Mutual labels:  zsh-configuration
Geo
🌎 A Bash utility for easy wan, lan, router, dns, mac address, and geolocation output, with clean stdout for piping
Stars: ✭ 225 (+878.26%)
Mutual labels:  zsh
Alien
An asynchronous zsh prompt
Stars: ✭ 218 (+847.83%)
Mutual labels:  zsh
zsh-ls-colors
A zsh library to use LS_COLORS
Stars: ✭ 23 (+0%)
Mutual labels:  zsh
DotFiles
🎨 one-stop service for you to configure many Unix tools.
Stars: ✭ 29 (+26.09%)
Mutual labels:  zsh-configuration
Starship
☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!
Stars: ✭ 20,504 (+89047.83%)
Mutual labels:  zsh
Ruby Scripts
A collection of ruby scripts for those who live in the command line
Stars: ✭ 234 (+917.39%)
Mutual labels:  zsh
zsh-launchpad
🚀 Simple, educational dotfiles template to get started with Zsh and learn about its features
Stars: ✭ 141 (+513.04%)
Mutual labels:  zsh-configuration
Spaceship Prompt
🚀⭐ A Zsh prompt for Astronauts
Stars: ✭ 15,748 (+68369.57%)
Mutual labels:  zsh
msfvenom-zsh-completion
zsh completion for msfvenom in Metasploit
Stars: ✭ 42 (+82.61%)
Mutual labels:  zsh
Zsh Autoswitch Virtualenv
🐍 ZSH plugin to automatically switch python virtualenvs (including pipenv and poetry) as you move between directories
Stars: ✭ 222 (+865.22%)
Mutual labels:  zsh
Dotfiles
😈 Vim, git, zsh, tmux, and other goodies.
Stars: ✭ 240 (+943.48%)
Mutual labels:  zsh
dotfiles
My personal dotfiles
Stars: ✭ 13 (-43.48%)
Mutual labels:  zsh-configuration
Silver
A cross-shell customizable powerline-like prompt with icons
Stars: ✭ 238 (+934.78%)
Mutual labels:  zsh

Fancy ZSH config

A fancy ZSH config that fits my needs.

Install locally

On a multi-user system you'll want to install this just for your user.

  • Clone this repo to ~/.zsh (use --recursive to install the submodule)
  • ln -s ~/.zsh/.zshrc ~/.zshrc

To run custom code, the easiest solution is replacing the .zshrc symlink with an actual file which sources ~/.zsh/.zshrc before running the custom code.

Install globally

If you are the only user of a machine, it might be nice to install it globally for all users (such as your primary user, root, and any other account you might use).

  • Clone this repo using to /etc/zsh/custom (use --recursive to install the submodule)
  • ln -s /etc/zsh/custom/.zshrc /etc/zsh/zshrc
  • ln -s /etc/zsh/custom/.zshenv /etc/zsh/zshenv (to disable the new-user wizard)

Depending on your distribution you might need to use /etc/zshrc and /etc/zshenv instead of the paths shown above.

Autovenv

Loading Python virtualenvs is monkey work. The typical Linux user is not a monkey. You can create a ~/.autovenv file containing virtualenv path mappings which will automatically load the specified virtualenv if you are inside the specified directory. The syntax is quite simple:

# By default we want a Python 2 virtualenv
DEFAULT                 ~/.python2-env
# Misc scripts are using Python 3 though
~/dev/misc              ~/.python3-env
# The coolproject folder has an `env` subdirectory
~/dev/coolproject       env
# In /tmp we don't manage the virtualenv at all
/tmp                    IGNORE

The default DEFAULT is is to IGNORE the virtualenv. The only other value with a special meaning is GLOBAL which will deactivate any active virtualenv.

The autovenv check runs in a chpwd hook so after editing the file you will have to cd . to trigger it if you are already in the directory you added.

Note: You cannot use pyenv-virtualenv and autovenv simultaneously as having two utils activating/deactivating virtualenvs is a source for problems. You can either disable autovenv by not having a ~/.autovenv file or pyenv-virtualenv by not running its init command (nor putting it in your ~/.zshrc). Using plain pyenv is fine by the way.

Prompt

The hostname color in the prompt can be overridden by setting ZSH_HOST_COLOR to any value that's allowed inside %F{...}.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].