From e8145917e83da098d29a07227ee15d67cadee326 Mon Sep 17 00:00:00 2001 From: tsxv478 Date: Sat, 1 Apr 2023 02:28:25 +0300 Subject: zshrc and zprofile --- zprofile | 20 ++++++++++++++++++++ zshrc | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 zprofile create mode 100644 zshrc 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' -- cgit v1.2.3