Integrate auto-color alias and editor shortcut in main config, use pager for nullcmd, remove outdated information
This commit is contained in:
parent
57b72c0e13
commit
d78812086e
3
.zshrc
3
.zshrc
@ -12,6 +12,9 @@ typeset -g EXTERN_PLUGINS="$ZDOTDIR/extern/"
|
|||||||
|
|
||||||
export EDITOR=${EDITOR:-vim}
|
export EDITOR=${EDITOR:-vim}
|
||||||
export PAGER=${PAGER:-less}
|
export PAGER=${PAGER:-less}
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias e="$EDITOR"
|
||||||
|
|
||||||
# Checks if the plugin exists before loading it's settings
|
# Checks if the plugin exists before loading it's settings
|
||||||
if [ -r "$EXTERN_PLUGINS/powerlevel10k/powerlevel10k.zsh-theme" ]; then
|
if [ -r "$EXTERN_PLUGINS/powerlevel10k/powerlevel10k.zsh-theme" ]; then
|
||||||
|
22
README.md
22
README.md
@ -8,26 +8,4 @@ It is enhanced by a few things which are submodules of this repo:
|
|||||||
- zsh-autosuggestions
|
- zsh-autosuggestions
|
||||||
- zsh-synthax-highlighting
|
- zsh-synthax-highlighting
|
||||||
|
|
||||||
Some custom prompts depend on these binaries in your path:
|
|
||||||
|
|
||||||
- sqlite *(if using the youtube RSS plugin [depends on newsboat cache database])*
|
|
||||||
- busctl *(for dbus interactions)*
|
|
||||||
|
|
||||||
While i do attempt to make this usable widely, don't rely on it. If you want to use this and have it work as you want it, it's expected that you can read manual pages and know at least a bit of shell scripting.
|
While i do attempt to make this usable widely, don't rely on it. If you want to use this and have it work as you want it, it's expected that you can read manual pages and know at least a bit of shell scripting.
|
||||||
|
|
||||||
## These variables should be set in your .zshenv or your profiles/environment files
|
|
||||||
|
|
||||||
### ZDOTDIR
|
|
||||||
This environment variable should be set to the root of your repository (usually ~/.config/zsh or ~/.zsh)
|
|
||||||
|
|
||||||
### zstyles
|
|
||||||
|
|
||||||
#### :custom:preferences prompt
|
|
||||||
Because font support detection is a bit complicated, the `prompt` variable in this zstyle allows you to manually toggle on a specific prompt (now only p9k is available)
|
|
||||||
|
|
||||||
#### :custom:prompts:mpv socket
|
|
||||||
This should be the location of the mpv socket that is available via the `input-ipc-server`. It will check if the socket exists, and if it does it will use it.
|
|
||||||
NOTE: While this is fast, it has it's drawbacks. It currently relies on lots of assumptions and that should be understood. JSON parsing is done assuming that the title is a string and that the string has no special characters.
|
|
||||||
|
|
||||||
#### :custom:prompts:mail glob
|
|
||||||
This should be a glob pattern that would match any new mails. This works the best with the Mailbox format as every new mail is a file. mbox or spoolfiles may be supported in the distant future, but i don't plan to do that.
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
typeset -g ZLE_RPROMPT_INDENT=0
|
typeset -g ZLE_RPROMPT_INDENT=0
|
||||||
|
|
||||||
# Pager
|
# Pager
|
||||||
typeset -g READNULLCMD=less
|
typeset -g READNULLCMD="$PAGER"
|
||||||
export LESS=-iRFXM
|
export LESS=-iRFXM
|
||||||
if autoload -U colors && colors; then
|
if autoload -U colors && colors; then
|
||||||
export LESS_TERMCAP_md=$'\e['"${color[bold]};${color[red]}"'m'
|
export LESS_TERMCAP_md=$'\e['"${color[bold]};${color[red]}"'m'
|
||||||
|
Loading…
Reference in New Issue
Block a user