style: remove trailing whitespace (#12303)
This commit is contained in:
parent
a168efe73e
commit
1d09c6bb0a
73 changed files with 138 additions and 138 deletions
|
|
@ -1,12 +1,12 @@
|
||||||
# Put files in this folder to add your own custom functionality.
|
# Put files in this folder to add your own custom functionality.
|
||||||
# See: https://github.com/ohmyzsh/ohmyzsh/wiki/Customization
|
# See: https://github.com/ohmyzsh/ohmyzsh/wiki/Customization
|
||||||
#
|
#
|
||||||
# Files in the custom/ directory will be:
|
# Files in the custom/ directory will be:
|
||||||
# - loaded automatically by the init script, in alphabetical order
|
# - loaded automatically by the init script, in alphabetical order
|
||||||
# - loaded last, after all built-ins in the lib/ directory, to override them
|
# - loaded last, after all built-ins in the lib/ directory, to override them
|
||||||
# - ignored by git by default
|
# - ignored by git by default
|
||||||
#
|
#
|
||||||
# Example: add custom/shortcuts.zsh for shortcuts to your local projects
|
# Example: add custom/shortcuts.zsh for shortcuts to your local projects
|
||||||
#
|
#
|
||||||
# brainstormr=~/Projects/development/planetargon/brainstormr
|
# brainstormr=~/Projects/development/planetargon/brainstormr
|
||||||
# cd $brainstormr
|
# cd $brainstormr
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Put your custom themes in this folder.
|
# Put your custom themes in this folder.
|
||||||
# See: https://github.com/ohmyzsh/ohmyzsh/wiki/Customization#overriding-and-adding-themes
|
# See: https://github.com/ohmyzsh/ohmyzsh/wiki/Customization#overriding-and-adding-themes
|
||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
|
|
||||||
PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% "
|
PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% "
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ function handle_completion_insecurities() {
|
||||||
# /usr/share/zsh/5.0.6
|
# /usr/share/zsh/5.0.6
|
||||||
#
|
#
|
||||||
# Since the ignorable first line is printed to stderr and thus not captured,
|
# Since the ignorable first line is printed to stderr and thus not captured,
|
||||||
# stderr is squelched to prevent this output from leaking to the user.
|
# stderr is squelched to prevent this output from leaking to the user.
|
||||||
local -aU insecure_dirs
|
local -aU insecure_dirs
|
||||||
insecure_dirs=( ${(f@):-"$(compaudit 2>/dev/null)"} )
|
insecure_dirs=( ${(f@):-"$(compaudit 2>/dev/null)"} )
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
#
|
#
|
||||||
# This is written in a defensive style so it still works (and can detect) cases when
|
# This is written in a defensive style so it still works (and can detect) cases when
|
||||||
# basic functionality like echo and which have been redefined. In particular, almost
|
# basic functionality like echo and which have been redefined. In particular, almost
|
||||||
# everything is invoked with "builtin" or "command", to work in the face of user
|
# everything is invoked with "builtin" or "command", to work in the face of user
|
||||||
# redefinitions.
|
# redefinitions.
|
||||||
#
|
#
|
||||||
# OPTIONS
|
# OPTIONS
|
||||||
|
|
@ -59,7 +59,7 @@ function omz_diagnostic_dump() {
|
||||||
emulate -L zsh
|
emulate -L zsh
|
||||||
|
|
||||||
builtin echo "Generating diagnostic dump; please be patient..."
|
builtin echo "Generating diagnostic dump; please be patient..."
|
||||||
|
|
||||||
local thisfcn=omz_diagnostic_dump
|
local thisfcn=omz_diagnostic_dump
|
||||||
local -A opts
|
local -A opts
|
||||||
local opt_verbose opt_noverbose opt_outfile
|
local opt_verbose opt_noverbose opt_outfile
|
||||||
|
|
@ -90,7 +90,7 @@ function omz_diagnostic_dump() {
|
||||||
builtin echo
|
builtin echo
|
||||||
builtin echo Diagnostic dump file created at: "$outfile"
|
builtin echo Diagnostic dump file created at: "$outfile"
|
||||||
builtin echo
|
builtin echo
|
||||||
builtin echo To share this with OMZ developers, post it as a gist on GitHub
|
builtin echo To share this with OMZ developers, post it as a gist on GitHub
|
||||||
builtin echo at "https://gist.github.com" and share the link to the gist.
|
builtin echo at "https://gist.github.com" and share the link to the gist.
|
||||||
builtin echo
|
builtin echo
|
||||||
builtin echo "WARNING: This dump file contains all your zsh and omz configuration files,"
|
builtin echo "WARNING: This dump file contains all your zsh and omz configuration files,"
|
||||||
|
|
@ -105,8 +105,8 @@ function _omz_diag_dump_one_big_text() {
|
||||||
builtin echo oh-my-zsh diagnostic dump
|
builtin echo oh-my-zsh diagnostic dump
|
||||||
builtin echo
|
builtin echo
|
||||||
builtin echo $outfile
|
builtin echo $outfile
|
||||||
builtin echo
|
builtin echo
|
||||||
|
|
||||||
# Basic system and zsh information
|
# Basic system and zsh information
|
||||||
command date
|
command date
|
||||||
command uname -a
|
command uname -a
|
||||||
|
|
@ -151,7 +151,7 @@ function _omz_diag_dump_one_big_text() {
|
||||||
|
|
||||||
# Core command definitions
|
# Core command definitions
|
||||||
_omz_diag_dump_check_core_commands || return 1
|
_omz_diag_dump_check_core_commands || return 1
|
||||||
builtin echo
|
builtin echo
|
||||||
|
|
||||||
# ZSH Process state
|
# ZSH Process state
|
||||||
builtin echo Process state:
|
builtin echo Process state:
|
||||||
|
|
@ -167,7 +167,7 @@ function _omz_diag_dump_one_big_text() {
|
||||||
#TODO: Should this include `env` instead of or in addition to `export`?
|
#TODO: Should this include `env` instead of or in addition to `export`?
|
||||||
builtin echo Exported:
|
builtin echo Exported:
|
||||||
builtin echo $(builtin export | command sed 's/=.*//')
|
builtin echo $(builtin export | command sed 's/=.*//')
|
||||||
builtin echo
|
builtin echo
|
||||||
builtin echo Locale:
|
builtin echo Locale:
|
||||||
command locale
|
command locale
|
||||||
builtin echo
|
builtin echo
|
||||||
|
|
@ -181,7 +181,7 @@ function _omz_diag_dump_one_big_text() {
|
||||||
builtin echo
|
builtin echo
|
||||||
builtin echo 'compaudit output:'
|
builtin echo 'compaudit output:'
|
||||||
compaudit
|
compaudit
|
||||||
builtin echo
|
builtin echo
|
||||||
builtin echo '$fpath directories:'
|
builtin echo '$fpath directories:'
|
||||||
command ls -lad $fpath
|
command ls -lad $fpath
|
||||||
builtin echo
|
builtin echo
|
||||||
|
|
@ -224,7 +224,7 @@ function _omz_diag_dump_one_big_text() {
|
||||||
local cfgfile cfgfiles
|
local cfgfile cfgfiles
|
||||||
# Some files for bash that zsh does not use are intentionally included
|
# Some files for bash that zsh does not use are intentionally included
|
||||||
# to help with diagnosing behavior differences between bash and zsh
|
# to help with diagnosing behavior differences between bash and zsh
|
||||||
cfgfiles=( /etc/zshenv /etc/zprofile /etc/zshrc /etc/zlogin /etc/zlogout
|
cfgfiles=( /etc/zshenv /etc/zprofile /etc/zshrc /etc/zlogin /etc/zlogout
|
||||||
$zdotdir/.zshenv $zdotdir/.zprofile $zdotdir/.zshrc $zdotdir/.zlogin $zdotdir/.zlogout
|
$zdotdir/.zshenv $zdotdir/.zprofile $zdotdir/.zshrc $zdotdir/.zlogin $zdotdir/.zlogout
|
||||||
~/.zsh.pre-oh-my-zsh
|
~/.zsh.pre-oh-my-zsh
|
||||||
/etc/bashrc /etc/profile ~/.bashrc ~/.profile ~/.bash_profile ~/.bash_logout )
|
/etc/bashrc /etc/profile ~/.bashrc ~/.profile ~/.bash_profile ~/.bash_logout )
|
||||||
|
|
@ -258,8 +258,8 @@ function _omz_diag_dump_check_core_commands() {
|
||||||
# (For back-compatibility, if any of these are newish, they should be removed,
|
# (For back-compatibility, if any of these are newish, they should be removed,
|
||||||
# or at least made conditional on the version of the current running zsh.)
|
# or at least made conditional on the version of the current running zsh.)
|
||||||
# "history" is also excluded because OMZ is known to redefine that
|
# "history" is also excluded because OMZ is known to redefine that
|
||||||
reserved_words=( do done esac then elif else fi for case if while function
|
reserved_words=( do done esac then elif else fi for case if while function
|
||||||
repeat time until select coproc nocorrect foreach end '!' '[[' '{' '}'
|
repeat time until select coproc nocorrect foreach end '!' '[[' '{' '}'
|
||||||
)
|
)
|
||||||
builtins=( alias autoload bg bindkey break builtin bye cd chdir command
|
builtins=( alias autoload bg bindkey break builtin bye cd chdir command
|
||||||
comparguments compcall compctl compdescribe compfiles compgroups compquote comptags
|
comparguments compcall compctl compdescribe compfiles compgroups compquote comptags
|
||||||
|
|
@ -331,7 +331,7 @@ function _omz_diag_dump_os_specific_version() {
|
||||||
case "$OSTYPE" in
|
case "$OSTYPE" in
|
||||||
darwin*)
|
darwin*)
|
||||||
osname=$(command sw_vers -productName)
|
osname=$(command sw_vers -productName)
|
||||||
osver=$(command sw_vers -productVersion)
|
osver=$(command sw_vers -productVersion)
|
||||||
builtin echo "OS Version: $osname $osver build $(sw_vers -buildVersion)"
|
builtin echo "OS Version: $osname $osver build $(sw_vers -buildVersion)"
|
||||||
;;
|
;;
|
||||||
cygwin)
|
cygwin)
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ unset zcompdump_revision zcompdump_fpath zcompdump_refresh
|
||||||
# zcompile the completion dump file if the .zwc is older or missing.
|
# zcompile the completion dump file if the .zwc is older or missing.
|
||||||
if command mkdir "${ZSH_COMPDUMP}.lock" 2>/dev/null; then
|
if command mkdir "${ZSH_COMPDUMP}.lock" 2>/dev/null; then
|
||||||
zrecompile -q -p "$ZSH_COMPDUMP"
|
zrecompile -q -p "$ZSH_COMPDUMP"
|
||||||
command rm -rf "$ZSH_COMPDUMP.zwc.old" "${ZSH_COMPDUMP}.lock"
|
command rm -rf "$ZSH_COMPDUMP.zwc.old" "${ZSH_COMPDUMP}.lock"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_omz_source() {
|
_omz_source() {
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,6 @@ plugins=(... ansible)
|
||||||
|
|
||||||
## Maintainer
|
## Maintainer
|
||||||
|
|
||||||
### [Deepankumar](https://github.com/deepan10)
|
### [Deepankumar](https://github.com/deepan10)
|
||||||
|
|
||||||
[https://github.com/deepan10/oh-my-zsh/tree/features/ansible-plugin](https://github.com/deepan10/oh-my-zsh/tree/features/ansible-plugin)
|
[https://github.com/deepan10/oh-my-zsh/tree/features/ansible-plugin](https://github.com/deepan10/oh-my-zsh/tree/features/ansible-plugin)
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,7 @@ if [[ "$AWS_PROFILE_STATE_ENABLED" == true ]]; then
|
||||||
test -s "${AWS_STATE_FILE}" || return
|
test -s "${AWS_STATE_FILE}" || return
|
||||||
|
|
||||||
aws_state=($(cat $AWS_STATE_FILE))
|
aws_state=($(cat $AWS_STATE_FILE))
|
||||||
|
|
||||||
export AWS_DEFAULT_PROFILE="${aws_state[1]}"
|
export AWS_DEFAULT_PROFILE="${aws_state[1]}"
|
||||||
export AWS_PROFILE="$AWS_DEFAULT_PROFILE"
|
export AWS_PROFILE="$AWS_DEFAULT_PROFILE"
|
||||||
export AWS_EB_PROFILE="$AWS_DEFAULT_PROFILE"
|
export AWS_EB_PROFILE="$AWS_DEFAULT_PROFILE"
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ index 2fd5f2cd..9d89a464 100644
|
||||||
PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
|
PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
|
||||||
-PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
|
-PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
|
||||||
+PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(branch_prompt_info)'
|
+PROMPT+=' %{$fg[cyan]%}%c%{$reset_color%} $(branch_prompt_info)'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
|
||||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
_source-from-omz-settings() {
|
_source-from-omz-settings() {
|
||||||
local _chruby_path _chruby_auto
|
local _chruby_path _chruby_auto
|
||||||
|
|
||||||
zstyle -s :omz:plugins:chruby path _chruby_path || return 1
|
zstyle -s :omz:plugins:chruby path _chruby_path || return 1
|
||||||
zstyle -s :omz:plugins:chruby auto _chruby_auto || return 1
|
zstyle -s :omz:plugins:chruby auto _chruby_auto || return 1
|
||||||
|
|
||||||
|
|
@ -23,7 +23,7 @@ _source-from-homebrew() {
|
||||||
if [[ -h /usr/local/opt/chruby ]];then
|
if [[ -h /usr/local/opt/chruby ]];then
|
||||||
_brew_prefix="/usr/local/opt/chruby"
|
_brew_prefix="/usr/local/opt/chruby"
|
||||||
else
|
else
|
||||||
# ok , it is not default prefix
|
# ok , it is not default prefix
|
||||||
# this call to brew is expensive ( about 400 ms ), so at least let's make it only once
|
# this call to brew is expensive ( about 400 ms ), so at least let's make it only once
|
||||||
_brew_prefix=$(brew --prefix chruby)
|
_brew_prefix=$(brew --prefix chruby)
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ Alternatively, seek out the [online documentation][3]. And don't forget, there a
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
|
|
||||||
Contributed to `oh_my_zsh` by [benwilcock][2].
|
Contributed to `oh_my_zsh` by [benwilcock][2].
|
||||||
|
|
||||||
[1]: https://docs.cloudfoundry.org/cf-cli/install-go-cli.html
|
[1]: https://docs.cloudfoundry.org/cf-cli/install-go-cli.html
|
||||||
[2]: https://github.com/benwilcock
|
[2]: https://github.com/benwilcock
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ Also provides the following aliases:
|
||||||
* **cfc:** Copies the compiled JS to your clipboard. Very useful when you want
|
* **cfc:** Copies the compiled JS to your clipboard. Very useful when you want
|
||||||
to run the code in a JS console.
|
to run the code in a JS console.
|
||||||
|
|
||||||
* **cfp:** Compiles from your currently copied clipboard. Useful when you want
|
* **cfp:** Compiles from your currently copied clipboard. Useful when you want
|
||||||
to compile large/multi-line snippets
|
to compile large/multi-line snippets
|
||||||
|
|
||||||
* **cfpc:** Paste coffeescript from clipboard, compile to JS, then copy the
|
* **cfpc:** Paste coffeescript from clipboard, compile to JS, then copy the
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
if (( ${+commands[compleat]} )); then
|
if (( ${+commands[compleat]} )); then
|
||||||
local prefix="${commands[compleat]:h:h}"
|
local prefix="${commands[compleat]:h:h}"
|
||||||
local setup="${prefix}/share/compleat-1.0/compleat_setup"
|
local setup="${prefix}/share/compleat-1.0/compleat_setup"
|
||||||
|
|
||||||
if [[ -f "$setup" ]]; then
|
if [[ -f "$setup" ]]; then
|
||||||
if ! bashcompinit >/dev/null 2>&1; then
|
if ! bashcompinit >/dev/null 2>&1; then
|
||||||
|
|
@ -15,6 +15,6 @@ if (( ${+commands[compleat]} )); then
|
||||||
bashcompinit -i
|
bashcompinit -i
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source "$setup"
|
source "$setup"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# copy the active line from the command line buffer
|
# copy the active line from the command line buffer
|
||||||
# onto the system clipboard
|
# onto the system clipboard
|
||||||
|
|
||||||
copybuffer () {
|
copybuffer () {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ dash
|
||||||
|
|
||||||
- Query for something in dash app: `dash query`
|
- Query for something in dash app: `dash query`
|
||||||
```
|
```
|
||||||
dash golang
|
dash golang
|
||||||
```
|
```
|
||||||
|
|
||||||
- You can optionally provide a keyword: `dash [keyword:]query`
|
- You can optionally provide a keyword: `dash [keyword:]query`
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ _dotnet_completion() {
|
||||||
compdef _dotnet_completion dotnet
|
compdef _dotnet_completion dotnet
|
||||||
|
|
||||||
# Aliases bellow are here for backwards compatibility
|
# Aliases bellow are here for backwards compatibility
|
||||||
# added by Shaun Tabone (https://github.com/xontab)
|
# added by Shaun Tabone (https://github.com/xontab)
|
||||||
|
|
||||||
alias dn='dotnet new'
|
alias dn='dotnet new'
|
||||||
alias dr='dotnet run'
|
alias dr='dotnet run'
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ unset _omz_emoji_plugin_dir
|
||||||
|
|
||||||
# This is a combining character that can be placed after any other character to surround
|
# This is a combining character that can be placed after any other character to surround
|
||||||
# it in a "keycap" symbol.
|
# it in a "keycap" symbol.
|
||||||
# The digits 0-9 are already in the emoji table as keycap_digit_<N>, keycap_ten, etc.
|
# The digits 0-9 are already in the emoji table as keycap_digit_<N>, keycap_ten, etc.
|
||||||
# It's unclear whether this should be in the $emoji array, because those characters are all ones
|
# It's unclear whether this should be in the $emoji array, because those characters are all ones
|
||||||
# which can be displayed on their own.
|
# which can be displayed on their own.
|
||||||
|
|
||||||
|
|
@ -63,9 +63,9 @@ function random_emoji() {
|
||||||
[[ $list_size -eq 0 ]] && return 1
|
[[ $list_size -eq 0 ]] && return 1
|
||||||
local random_index=$(( ( RANDOM % $list_size ) + 1 ))
|
local random_index=$(( ( RANDOM % $list_size ) + 1 ))
|
||||||
local name=${names[$random_index]}
|
local name=${names[$random_index]}
|
||||||
if [[ "$group" == "flags" ]]; then
|
if [[ "$group" == "flags" ]]; then
|
||||||
echo ${emoji_flags[$name]}
|
echo ${emoji_flags[$name]}
|
||||||
else
|
else
|
||||||
echo ${emoji[$name]}
|
echo ${emoji[$name]}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
@ -86,22 +86,22 @@ function display_emoji() {
|
||||||
# terminals treat these emoji chars as single-width.
|
# terminals treat these emoji chars as single-width.
|
||||||
local counter=1
|
local counter=1
|
||||||
for i in $names; do
|
for i in $names; do
|
||||||
if [[ "$group" == "flags" ]]; then
|
if [[ "$group" == "flags" ]]; then
|
||||||
printf '%s ' "$emoji_flags[$i]"
|
printf '%s ' "$emoji_flags[$i]"
|
||||||
else
|
else
|
||||||
printf '%s ' "$emoji[$i]"
|
printf '%s ' "$emoji[$i]"
|
||||||
fi
|
fi
|
||||||
# New line every 20 emoji, to avoid weirdnesses
|
# New line every 20 emoji, to avoid weirdnesses
|
||||||
if (($counter % 20 == 0)); then
|
if (($counter % 20 == 0)); then
|
||||||
printf "\n"
|
printf "\n"
|
||||||
fi
|
fi
|
||||||
let counter=$counter+1
|
let counter=$counter+1
|
||||||
done
|
done
|
||||||
print
|
print
|
||||||
for i in $names; do
|
for i in $names; do
|
||||||
if [[ "$group" == "flags" ]]; then
|
if [[ "$group" == "flags" ]]; then
|
||||||
echo "${emoji_flags[$i]} = $i"
|
echo "${emoji_flags[$i]} = $i"
|
||||||
else
|
else
|
||||||
echo "${emoji[$i]} = $i"
|
echo "${emoji[$i]} = $i"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
# AUTHOR: Alexis Hildebrandt (afh[at]surryhill.net)
|
# AUTHOR: Alexis Hildebrandt (afh[at]surryhill.net)
|
||||||
# VERSION: 1.0.0
|
# VERSION: 1.0.0
|
||||||
# DEPENDS: emoji plugin
|
# DEPENDS: emoji plugin
|
||||||
#
|
#
|
||||||
# There are different sets of emoji characters available, to choose a different
|
# There are different sets of emoji characters available, to choose a different
|
||||||
# set export emotty_set to the name of the set you would like to use, e.g.:
|
# set export emotty_set to the name of the set you would like to use, e.g.:
|
||||||
# % export emotty_set=nature
|
# % export emotty_set=nature
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ plugins=(... encode64)
|
||||||
|
|
||||||
### Encoding a file
|
### Encoding a file
|
||||||
|
|
||||||
Encode a file's contents to base64 and save output to text file.
|
Encode a file's contents to base64 and save output to text file.
|
||||||
**NOTE:** Takes provided file and saves encoded content as new file with `.txt` extension
|
**NOTE:** Takes provided file and saves encoded content as new file with `.txt` extension
|
||||||
|
|
||||||
- From parameter
|
- From parameter
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
# Use Ctrl-Z to switch back to Vim
|
# Use Ctrl-Z to switch back to Vim
|
||||||
|
|
||||||
I frequently need to execute random commands in my shell. To achieve it I pause
|
I frequently need to execute random commands in my shell. To achieve it I pause
|
||||||
Vim by pressing Ctrl-z, type command and press fg<Enter> to switch back to Vim.
|
Vim by pressing Ctrl-z, type command and press fg<Enter> to switch back to Vim.
|
||||||
The fg part really hurts me. I just wanted to hit Ctrl-z once again to get back
|
The fg part really hurts me. I just wanted to hit Ctrl-z once again to get back
|
||||||
to Vim. I could not find a solution, so I developed one on my own that
|
to Vim. I could not find a solution, so I developed one on my own that
|
||||||
works wonderfully with ZSH.
|
works wonderfully with ZSH.
|
||||||
|
|
||||||
Source: http://sheerun.net/2014/03/21/how-to-boost-your-vim-productivity/
|
Source: http://sheerun.net/2014/03/21/how-to-boost-your-vim-productivity/
|
||||||
|
|
||||||
Credits:
|
Credits:
|
||||||
- original idea by @sheerun
|
- original idea by @sheerun
|
||||||
- added to OMZ by @mbologna
|
- added to OMZ by @mbologna
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,13 +71,13 @@ them, add `<variable>=<value>` to your zshrc file, before Oh My Zsh is sourced.
|
||||||
For example: `fastfile_var_prefix='@'`.
|
For example: `fastfile_var_prefix='@'`.
|
||||||
|
|
||||||
- `fastfile_var_prefix`: prefix for the global aliases created. Controls the prefix of the
|
- `fastfile_var_prefix`: prefix for the global aliases created. Controls the prefix of the
|
||||||
created global aliases.
|
created global aliases.
|
||||||
**Default:** `§` (section sign), easy to type in a german keyboard via the combination
|
**Default:** `§` (section sign), easy to type in a german keyboard via the combination
|
||||||
[`⇧ Shift`+`3`](https://en.wikipedia.org/wiki/German_keyboard_layout#/media/File:KB_Germany.svg),
|
[`⇧ Shift`+`3`](https://en.wikipedia.org/wiki/German_keyboard_layout#/media/File:KB_Germany.svg),
|
||||||
or using `⌥ Option`+`6` in macOS.
|
or using `⌥ Option`+`6` in macOS.
|
||||||
|
|
||||||
- `fastfile_dir`: directory where the fastfile shortcuts are stored. Needs to end
|
- `fastfile_dir`: directory where the fastfile shortcuts are stored. Needs to end
|
||||||
with a trailing slash.
|
with a trailing slash.
|
||||||
**Default:** `$HOME/.fastfile/`.
|
**Default:** `$HOME/.fastfile/`.
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue