Обновление ohmyzsh
This commit is contained in:
10
zsh/plugins/screen/README.md
Normal file
10
zsh/plugins/screen/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# screen
|
||||
|
||||
This plugin sets title and hardstatus of the tab window for [screen](https://www.gnu.org/software/screen/),
|
||||
the terminal multiplexer.
|
||||
|
||||
To use it add `screen` to the plugins array in your zshrc file.
|
||||
|
||||
```zsh
|
||||
plugins=(... screen)
|
||||
```
|
||||
@@ -2,7 +2,7 @@
|
||||
# of the tab window should be.
|
||||
if [[ "$TERM" == screen* ]]; then
|
||||
if [[ $_GET_PATH == '' ]]; then
|
||||
_GET_PATH='echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USER/~/"'
|
||||
_GET_PATH='echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USERNAME/~/"'
|
||||
fi
|
||||
if [[ $_GET_HOST == '' ]]; then
|
||||
_GET_HOST='echo $HOST | sed "s/\..*//"'
|
||||
@@ -51,4 +51,4 @@ if [[ "$TERM" == screen* ]]; then
|
||||
eval "tab_hardstatus=$TAB_HARDSTATUS_PREFIX:$TAB_HARDSTATUS_PROMPT"
|
||||
screen_set $tab_title $tab_hardstatus
|
||||
}
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user