forked from ohmyzsh/ohmyzsh
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into personal
* origin/master: (22 commits) Adding alias to rake db:schema:load command. (ohmyzsh#5281) Create an alias to open up sublime project (ohmyzsh#5258) Add gcpa and gcpc aliases to git plugin (ohmyzsh#5271) Enhancement: Show/Hide OSX hidden files 💯 (ohmyzsh#5275) Plugin : Sudo - Add support of sudoedit (ohmyzsh#5035) plugins/urltools: add suport for python 3 (ohmyzsh#5039) muse theme: Remove extra spaces for none git/virtualenv prompt (ohmyzsh#5278) add kubectl plugin (ohmyzsh#5298) refresh .rake_tasks when lib/tasks changed (ohmyzsh#5111) Add tmux attach -d alias (ohmyzsh#5285) add npm aliases (ohmyzsh#5290) (git): Add gpsup alias (ohmyzsh#5287) Add shrink-path plugin to shorten directory paths (e.g. ~/f/b/quux) (ohmyzsh#5262) added mix autocompletion support for phoenix (ohmyzsh#4967) update alias of get a list of packages installed locally (ohmyzsh#5276) Replace /bin/sh with sh for portability (ohmyzsh#5291) nvm plugin improvements (ohmyzsh#5265) [git plugin] Fix indentation and organise aliases Fix gbda alias to support `color.ui = always` + exclude dev branches (ohmyzsh#4304) support for startpage search engine in web-search plugin (ohmyzsh#5245) ...
- Loading branch information
Showing
24 changed files
with
360 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Autocompletion for kubectl, the command line interface for Kubernetes | ||
# | ||
# Author: https://github.com/pstadler | ||
|
||
if [ $commands[kubectl] ]; then | ||
source <(kubectl completion zsh) | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# The addition 'nvm install' attempts in ~/.profile | ||
# Set NVM_DIR if it isn't already defined | ||
[[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm" | ||
|
||
[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh | ||
# Load nvm if it exists | ||
[[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# A plugin to shrink directory paths for brevity and pretty-printing | ||
|
||
|
||
## Examples | ||
|
||
For this directory tree: | ||
``` | ||
/home/ | ||
me/ | ||
foo/ | ||
bar/ | ||
quux/ | ||
biz/ # The prefix b is ambiguous between bar and biz. | ||
``` | ||
here are the results of calling `shrink_path <option> /home/me/foo/bar/quux`: | ||
``` | ||
Option Result | ||
<none> /h/m/f/ba/q | ||
-l|--last /h/m/f/ba/quux | ||
-s|--short /h/m/f/b/q | ||
-t|--tilde ~/f/ba/q | ||
-f|--fish ~/f/b/quux | ||
``` | ||
|
||
|
||
## Usage | ||
|
||
For a fish-style working directory in your command prompt, add the following to | ||
your theme or zshrc: | ||
|
||
``` | ||
setopt prompt_subst | ||
PS1='%n@%m $(shrink_path -f)>' | ||
``` | ||
|
||
The following options are available: | ||
|
||
``` | ||
-f, --fish fish simulation, equivalent to -l -s -t. | ||
-l, --last Print the last directory's full name. | ||
-s, --short Truncate directory names to the first character. Without | ||
-s, names are truncated without making them ambiguous. | ||
-t, --tilde Substitute ~ for the home directory. | ||
-T, --nameddirs Substitute named directories as well. | ||
``` | ||
|
||
The long options can also be set via zstyle, like | ||
``` | ||
zstyle :prompt:shrink_path fish yes | ||
``` | ||
|
||
Note: Directory names containing two or more consecutive spaces are not yet | ||
supported. | ||
|
||
|
||
## License | ||
|
||
Copyright (C) 2008 by Daniel Friesel <derf@xxxxxxxxxxxxxxxxxx> | ||
|
||
License: WTFPL <http://sam.zoy.org/wtfpl> | ||
|
||
Ref: http://www.zsh.org/mla/workers/2009/msg00415.html | ||
http://www.zsh.org/mla/workers/2009/msg00419.html | ||
|
||
|
||
## Misc | ||
|
||
Keywords: prompt directory truncate shrink collapse fish |
Oops, something went wrong.