mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-26 01:57:26 +08:00
Compare commits
No commits in common. "90814f3597a32b8213801ac2b9a8431ea63cb094" and "dbad1d66328f261618d9ce28c80545a94a54fc45" have entirely different histories.
90814f3597
...
dbad1d6632
@ -1,11 +0,0 @@
|
|||||||
# chezmoi Plugin
|
|
||||||
|
|
||||||
## Introduction
|
|
||||||
|
|
||||||
This `chezmoi` plugin sets up completion for [chezmoi](https://chezmoi.io).
|
|
||||||
|
|
||||||
To use it, add `chezmoi` to the plugins array of your zshrc file:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
plugins=(... chezmoi)
|
|
||||||
```
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
# COMPLETION FUNCTION
|
|
||||||
if (( ! $+commands[chezmoi] )); then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# If the completion file doesn't exist yet, we need to autoload it and
|
|
||||||
# bind it to `chezmoi`. Otherwise, compinit will have already done that.
|
|
||||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_chezmoi" ]]; then
|
|
||||||
typeset -g -A _comps
|
|
||||||
autoload -Uz _chezmoi
|
|
||||||
_comps[chezmoi]=_chezmoi
|
|
||||||
fi
|
|
||||||
|
|
||||||
chezmoi completion zsh >| "$ZSH_CACHE_DIR/completions/_chezmoi" &|
|
|
||||||
@ -100,11 +100,7 @@ function _add_identities() {
|
|||||||
if zstyle -t :omz:plugins:ssh-agent agent-forwarding \
|
if zstyle -t :omz:plugins:ssh-agent agent-forwarding \
|
||||||
&& [[ -n "$SSH_AUTH_SOCK" ]]; then
|
&& [[ -n "$SSH_AUTH_SOCK" ]]; then
|
||||||
if [[ ! -L "$SSH_AUTH_SOCK" ]]; then
|
if [[ ! -L "$SSH_AUTH_SOCK" ]]; then
|
||||||
if [[ -n "$TERMUX_VERSION" ]]; then
|
ln -sf "$SSH_AUTH_SOCK" /tmp/ssh-agent-$USERNAME-screen
|
||||||
ln -sf "$SSH_AUTH_SOCK" "$PREFIX"/tmp/ssh-agent-$USERNAME-screen
|
|
||||||
else
|
|
||||||
ln -sf "$SSH_AUTH_SOCK" /tmp/ssh-agent-$USERNAME-screen
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
_start_agent
|
_start_agent
|
||||||
|
|||||||
@ -13,7 +13,6 @@ plugins=(... systemadmin)
|
|||||||
| Alias | Command | Description |
|
| Alias | Command | Description |
|
||||||
|---------|----------------------------------------------------------------------------|--------------------------------------------------------------------|
|
|---------|----------------------------------------------------------------------------|--------------------------------------------------------------------|
|
||||||
| ping | `ping -c 5` | Sends only 5 ICMP Messages |
|
| ping | `ping -c 5` | Sends only 5 ICMP Messages |
|
||||||
| ping6 | `ping6 -c 5` | Sends only 5 ICMPv6 Messages |
|
|
||||||
| clr | `clear; echo Currently logged in on $TTY, as $USERNAME in directory $PWD.` | Clears the screen and prints the current user, TTY, and directory |
|
| clr | `clear; echo Currently logged in on $TTY, as $USERNAME in directory $PWD.` | Clears the screen and prints the current user, TTY, and directory |
|
||||||
| path | `print -l $path` | Displays PATH with each entry on a separate line |
|
| path | `print -l $path` | Displays PATH with each entry on a separate line |
|
||||||
| mkdir | `mkdir -pv` | Automatically create parent directories and display verbose output |
|
| mkdir | `mkdir -pv` | Automatically create parent directories and display verbose output |
|
||||||
|
|||||||
@ -21,7 +21,6 @@ function retlog() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
alias ping='ping -c 5'
|
alias ping='ping -c 5'
|
||||||
alias ping6='ping6 -c 5'
|
|
||||||
alias clr='clear; echo Currently logged in on $TTY, as $USERNAME in directory $PWD.'
|
alias clr='clear; echo Currently logged in on $TTY, as $USERNAME in directory $PWD.'
|
||||||
alias path='print -l $path'
|
alias path='print -l $path'
|
||||||
alias mkdir='mkdir -pv'
|
alias mkdir='mkdir -pv'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user