summaryrefslogtreecommitdiff
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
parent30e731d15ab438661ccf743ce3a2cdd11e963632 (diff)
zshrc and zprofile
-rw-r--r--zprofile20
-rw-r--r--zshrc38
2 files changed, 58 insertions, 0 deletions
diff --git a/zprofile b/zprofile
new file mode 100644
index 0000000..1669ebd
--- /dev/null
+++ b/zprofile
@@ -0,0 +1,20 @@
+export TERMINAL='st'
+export EDITOR='nvim'
+export BROWSER='brave'
+export PATH="/home/atx71/.local/bin:$PATH"
+export GOPATH="$HOME/.local/share/go"
+export ANSIBLE_CONFIG="$HOME/.config/ansible/ansible.cfg"
+export WINEDEBUG=-all
+export AWT_TOOLKIT=MToolkit
+export _JAVA_AWT_WM_NONREPARENTING=1
+export LESS=-R
+export LESSHISTFILE=-
+export LESS_TERMCAP_mb=$'\e[1;36m'
+export LESS_TERMCAP_md=$'\e[1;36m'
+export LESS_TERMCAP_me=$'\e[0m'
+export LESS_TERMCAP_se=$'\e[0m'
+export LESS_TERMCAP_so=$'\e[01;33m'
+export LESS_TERMCAP_ue=$'\e[0m'
+export LESS_TERMCAP_us=$'\e[0;4;34m'
+
+[ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && exec startx >/dev/null 2>&1
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'