Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
75f87dd2
Commit
75f87dd2
authored
Oct 04, 2016
by
slavaGanzin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
README for globalias
parent
86126233
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
README.md
plugins/globalias/README.md
+37
-0
globalias.plugin.zsh
plugins/globalias/globalias.plugin.zsh
+3
-0
No files found.
plugins/globalias/README.md
0 → 100644
View file @
75f87dd2
#Globalias
Expands all globes, backtick expressions and aliases(including global).
```
$ touch {1..10}<space>
#expands to
$ touch 1 2 3 4 5 6 7 8 9 10
$ mkdir "`date -R`"
#expands to
$ mkdir Tue,\ 04\ Oct\ 2016\ 13:54:03\ +0300
#.zshrc:
alias -g G="| grep --color=auto -P"
alias l='ls --color=auto -lah'
$ l<space>G<space>
#expands to
$ ls --color=auto -lah | grep --color=auto -P
ls **/*.json<space>
#expands to
ls folder/file.json anotherfolder/another.json
```
####Returns autocompletion to your custom aliases:
```
#.zsrc
alias S="sudo systemctl"
$ S<space>
#expands to:
sudo systemctl s<tab>
#trigger autocompletion
```
plugins/globalias/globalias.plugin.zsh
View file @
75f87dd2
...
...
@@ -12,3 +12,6 @@ bindkey -M viins " " globalias
# control-space to make a normal space
bindkey
-M
emacs
"^ "
magic-space
bindkey
-M
viins
"^ "
magic-space
# normal space during searches
bindkey
-M
isearch
" "
magic-space
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment