Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Zsh plugins
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ViaRézo
Zsh plugins
Commits
c1d1089b
Verified
Commit
c1d1089b
authored
4 years ago
by
Baptiste Girard-Carrabin
Browse files
Options
Downloads
Patches
Plain Diff
initial commit
parents
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
LICENSE
+13
-0
13 additions, 0 deletions
LICENSE
README.md
+32
-0
32 additions, 0 deletions
README.md
watch/watch.plugin.zsh
+46
-0
46 additions, 0 deletions
watch/watch.plugin.zsh
with
91 additions
and
0 deletions
LICENSE
0 → 100644
+
13
−
0
View file @
c1d1089b
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
This diff is collapsed.
Click to expand it.
README.md
0 → 100644
+
32
−
0
View file @
c1d1089b
# ViaRézo ZSH Theme
[

](http://www.wtfpl.net)
This is a list of little plugins that one can use with oh-my-zsh.
## Install plugins
In order to use these plugins, you have to clone this repository in your Oh-My-ZSH
`custom/plugins`
directory (usually
`~/.oh-my-zsh/custom/plugins`
):
```
shell
git clone https://gitlab.viarezo.fr/ViaRezo/zsh-plugins.git
$ZSH
/custom/plugins
```
You then need to add the plugins you want to your
`~/.zshrc`
:
```
shell
plugins
=(
... plugin_you_want
)
```
## Customization
To create new plugins, juste create a directory with a .zsh file in it.
The directory and the file should be named with the name of your plugin :
```
shell
plugin_name/plugin_name.plugin.zsh
```
## License
Unless explicitly stated to the contrary, all contents licensed under the
[
WTFPL
](
LICENSE
)
.
This diff is collapsed.
Click to expand it.
watch/watch.plugin.zsh
0 → 100644
+
46
−
0
View file @
c1d1089b
# ------------------------------------------------------------------------------
# Description
# -----------
#
# watch will be inserted before the command
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Connard <baptiste.gc@student-cs.fr>
#
# ------------------------------------------------------------------------------
watch-command-line
()
{
[[
-z
$BUFFER
]]
&&
LBUFFER
=
"
$(
fc
-ln
-1
)
"
# if [[ -n $EDITOR && $BUFFER == $EDITOR\ * ]]; then
# if [[ ${#LBUFFER} -le ${#EDITOR} ]]; then
# RBUFFER=" ${BUFFER#$EDITOR }"
# LBUFFER="sudoedit"
# else
# LBUFFER="sudoedit ${LBUFFER#$EDITOR }"
# fi
# elif [[ $BUFFER == sudoedit\ * ]]; then
# if [[ ${#LBUFFER} -le 8 ]]; then
# RBUFFER=" ${BUFFER#sudoedit }"
# LBUFFER="$EDITOR"
# else
# LBUFFER="$EDITOR ${LBUFFER#sudoedit }"
# fi
if
[[
$BUFFER
==
watch
\
*
]]
;
then
if
[[
${#
LBUFFER
}
-le
4
]]
;
then
RBUFFER
=
"
${
BUFFER
#watch
}
"
LBUFFER
=
""
else
LBUFFER
=
"
${
LBUFFER
#watch
}
"
fi
else
LBUFFER
=
"watch
$LBUFFER
"
fi
}
zle
-N
watch-command-line
# Defined shortcut keys: [Alt] [Esc]
bindkey
-M
emacs
'^\e'
watch-command-line
bindkey
-M
vicmd
'^\e'
watch-command-line
bindkey
-M
viins
'^\e'
watch-command-line
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment