forked from ohmyzsh/ohmyzsh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
* 'master' of https://github.com/robbyrussell/oh-my-zsh: brew: fix disclaimer shown if mkdir is aliased Update endpoint from HTTP to HTTPS (ohmyzsh#5622) dircycle: fix error on insert-cycledleft if dirstack is empty Fix ohmyzsh#5604: No DIR ( directory ) colors (ohmyzsh#5605) Changed dsa --> rsa in zshrc.zsh-template file (ohmyzsh#5603) node: open module-specific node documentation (ohmyzsh#5572) Fix invalid "ls -G" alias. Check dircolors settings before using gls on darwin (ohmyzsh#5570) znt: Update to v2.2.7 (ohmyzsh#5576) common-aliases: check if `$XIVIEWER` is defined and minor fixes common-aliases: minor style fixes common-aliases: check if $BROWSER is defined on browser aliases PHP suffix alias should be removed Clarify how to open ~/.zshrc file in README.md
- Loading branch information
Showing
13 changed files
with
194 additions
and
38 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
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,5 +1,6 @@ | ||
# Open the node api for your current version to the optional section. | ||
# TODO: Make the section part easier to use. | ||
function node-docs { | ||
open_command "http://nodejs.org/docs/$(node --version)/api/all.html#all_$1" | ||
local section=${1:-all} | ||
open_command "https://nodejs.org/docs/$(node --version)/api/$section.html" | ||
} |
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,17 @@ | ||
------------------------------------- | ||
CHANGES FROM PREVIOUS VERSIONS OF ZNT | ||
------------------------------------- | ||
|
||
Changes from 2.2.1 to 2.2.7 | ||
--------------------------- | ||
|
||
Tmux integration has been added – bind file znt-tmux.zsh in Tmux as | ||
described in README.md and e.g. run local history on remote hosts. Tmux | ||
opens new window with n-history, and pastes selected history entry into | ||
immediate previous window (e.g. a remote session). Fixed plugin.zsh file | ||
to not use (outer scope) positional parameters. This fixes problem with | ||
Grlm's Zsh configuration. The file now doesn't use "test" builtin (but | ||
[[ instead), because it can be shadowed by alias or command. Private | ||
history has been fixed to not overwrite its history file with the same | ||
content. This improves performance when switching to private history | ||
view. |
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,50 @@ | ||
#!/usr/bin/env zsh | ||
|
||
# Copyright (c) 2016, Zsolt Lengyel | ||
# Modifications copyright (c) 2016, Sebastian Gniazdowski | ||
|
||
# | ||
# This script opens a new, temporary tmux pane and runs n-history. When | ||
# a selection is made, the result (history entry) is pasted back into | ||
# original tmux pane, and the temporary pane is closed. This allows to | ||
# use local history on remote machines. | ||
# | ||
# To use, put this line to your ~/.tmux.conf. The tool is invoked with: | ||
# Ctrl+b h | ||
# | ||
# bind h run-shell -b "$ZNT_REPO_DIR/znt-tmux.zsh" | ||
# | ||
|
||
# get and save the current active tmux pane id | ||
active_pane=$(tmux display -p -F ':#{session_id}:#I:#P:#{pane_active}:#{window_active}:#{session_attached}' ) | ||
a_active_pane=("${(@s/:/)active_pane}") | ||
|
||
active_session=${a_active_pane[2]//$} | ||
active_window=$a_active_pane[3] | ||
active_pane=$a_active_pane[4] | ||
|
||
# set variables for upcoming window | ||
tmux setenv -t $active_session:$active_window.$active_pane "ZNT_TMUX_MODE" 1 | ||
tmux setenv -t $active_session:$active_window.$active_pane "ZNT_TMUX_ORIGIN_SESSION" "$active_session" | ||
tmux setenv -t $active_session:$active_window.$active_pane "ZNT_TMUX_ORIGIN_WINDOW" "$active_window" | ||
tmux setenv -t $active_session:$active_window.$active_pane "ZNT_TMUX_ORIGIN_PANE" "$active_pane" | ||
|
||
# create a new window in the active session and call it znt-hist | ||
tmux new-window -t $active_session: -n znt-hist | ||
|
||
# unset the variables, so only above single window has them | ||
tmux setenv -u -t $active_session:$active_window.$active_pane "ZNT_TMUX_MODE" | ||
tmux setenv -u -t $active_session:$active_window.$active_pane "ZNT_TMUX_ORIGIN_SESSION" | ||
tmux setenv -u -t $active_session:$active_window.$active_pane "ZNT_TMUX_ORIGIN_WINDOW" | ||
tmux setenv -u -t $active_session:$active_window.$active_pane "ZNT_TMUX_ORIGIN_PANE" | ||
|
||
# znt's session id | ||
znt_active_pane=$(tmux display -p -F ':#{session_id}:#I:#P:#{pane_active}:#{window_active}:#{session_attached}' ) | ||
znt_a_active_pane=("${(@s/:/)znt_active_pane}") | ||
|
||
znt_active_session=${znt_a_active_pane[2]//$} | ||
znt_active_window=$znt_a_active_pane[3] | ||
znt_active_pane=$znt_a_active_pane[4] | ||
|
||
# call znt | ||
tmux send -t "$znt_active_session:$znt_active_window.$znt_active_pane" n-history ENTER |
35 changes: 20 additions & 15 deletions
35
plugins/zsh-navigation-tools/zsh-navigation-tools.plugin.zsh
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