summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authortsxv478 <vt0451@yandex.ru>2023-04-01 02:28:25 +0300
committertsxv478 <vt0451@yandex.ru>2023-04-01 02:28:25 +0300
commite8145917e83da098d29a07227ee15d67cadee326 (patch)
tree77a2de53dfb8af0ace7b6c14de1c06bc8873d798 /zshrc
parent30e731d15ab438661ccf743ce3a2cdd11e963632 (diff)
zshrc and zprofile
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc38
1 files changed, 38 insertions, 0 deletions
diff --git a/zshrc b/zshrc
new file mode 100644
index 0000000..d1afb95
--- /dev/null
+++ b/zshrc
@@ -0,0 +1,38 @@
+autoload -U colors && colors
+PS1="%B%{$fg[yellow]%}[%{$fg[green]%}%n%{$fg[yellow]%}@%{$fg[cyan]%}%M%{$fg[yellow]%}:%{$fg[yellow]%}%~%{$fg[yellow]%}]"$'\n'"%{$fg[yellow]%}>%b "
+stty stop undef
+HISTFILE=~/.cache/histfile
+HISTSIZE=10000
+SAVEHIST=10000
+setopt EXTENDED_HISTORY
+unsetopt beep
+bindkey -e
+zstyle :compinstall filename '~/.zshrc'
+autoload -Uz compinit
+compinit
+zstyle ':completion:*' menu select
+zmodload zsh/complist
+_comp_options+=(globdots)
+
+alias \
+ ls='ls -Fv --color=auto --group-directories-first' \
+ ll='ls -lhvF --color=auto --group-directories-first' \
+ la='ls -lhvAF --color=auto --group-directories-first' \
+ grep='grep --color=auto' \
+ diff='diff --color=auto' \
+ tree='tree -C' \
+ cal='cal -ym' \
+ cp='cp -v' \
+ mv='mv -v' \
+ rm='rm -vI' \
+ mkdir='mkdir -pv' \
+ bc='bc -lq' \
+ ip='ip -c' \
+ wttr='curl https://wttr.in' \
+ mapscii='telnet mapscii.me' \
+ mpva='mpv --no-video' \
+ ytdl='yt-dlp' \
+ re='zathura' \
+ nsxiv='nsxiv -a' \
+ units='units -H ""' \
+ pacs='pacman -Slq | fzf --reverse --multi --preview "pacman -Si {1}" --preview-window=right:75%:sharp | xargs -ro sudo pacman -S'