adds zsh config
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
alias ka="killall" \
|
||||||
|
p="sudo pacman" \
|
||||||
|
s="sudo systemctl" \
|
||||||
|
ss="sudo systemctl start" \
|
||||||
|
f="vifm" \
|
||||||
|
g="git" \
|
||||||
|
v="$EDITOR" \
|
||||||
|
x="sxiv -ft *" \
|
||||||
|
sdn="sudo shutdown -h now" \
|
||||||
|
reflect="sudo reflector --country Netherlands --sort rate --age 12 --save /etc/pacman.d/mirrorlist" \
|
||||||
|
ls="ls -hN --color=auto --group-directories-first" \
|
||||||
|
grep="grep --color=auto" \
|
||||||
|
diff="diff --color=auto" \
|
||||||
|
yt="youtube-dl --add-metadata -i -o '%(upload_date)s-%(title)s.%(ext)s'" \
|
||||||
|
yta="yt -x -f bestaudio/best" \
|
||||||
|
vim="nvim" \
|
||||||
|
cfg="$EDITOR .config/sway/config" \
|
||||||
|
icat="kitty +kitten icat"
|
||||||
|
|
||||||
|
se() { du -a ~/.scripts/* ~/.config/* | awk '{print $2}' | fzf | xargs -r $EDITOR ;}
|
||||||
|
vf() { fzf | xargs -r -I % $EDITOR % ;}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
|||||||
|
export PATH="$PATH:$(du "$HOME/.scripts/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
|
||||||
|
[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x sway >/dev/null && exec sway
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
EDITOR=nvim
|
||||||
|
FILE=vifm
|
||||||
|
TERMINAL=kitty
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
unsetopt prompt_cr prompt_sp
|
||||||
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
|
||||||
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
|
||||||
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
|
#if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
|
# source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
|
#fi
|
||||||
|
GITSTATUS_LOG_LEVEL=DEBUG
|
||||||
|
|
||||||
|
ZSH=/usr/share/oh-my-zsh/
|
||||||
|
# export TERM="xterm-256color"
|
||||||
|
#ZSH_THEME="theunraveler"
|
||||||
|
#ZSH_THEME="flazz"
|
||||||
|
#powerline-daemon -q
|
||||||
|
#. /usr/lib/python3.8/site-packages/powerline/bindings/zsh/powerline.zsh
|
||||||
|
|
||||||
|
autoload -U colors && colors
|
||||||
|
# PS1="\\u@\h \\W\\$"
|
||||||
|
|
||||||
|
HISTFILE=~/.config/history
|
||||||
|
HISTSIZE=10000
|
||||||
|
SAVEHIST=100000
|
||||||
|
setopt appendhistory autocd extendedglob
|
||||||
|
setopt no_complete_aliases
|
||||||
|
unsetopt beep
|
||||||
|
bindkey -v
|
||||||
|
zstyle :compinstall filename '/home/mark/.zshrc'
|
||||||
|
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit
|
||||||
|
kitty + complete setup zsh | source /dev/stdin
|
||||||
|
plugins=(
|
||||||
|
vi-mode
|
||||||
|
git
|
||||||
|
colored-man-pages
|
||||||
|
command-not-found
|
||||||
|
pass
|
||||||
|
docker)
|
||||||
|
|
||||||
|
#fzf
|
||||||
|
source /usr/share/fzf/key-bindings.zsh
|
||||||
|
source /usr/share/fzf/completion.zsh
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
source ~/.aliasrc
|
||||||
|
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh
|
||||||
|
|
||||||
|
setopt PROMPT_CR
|
||||||
|
setopt PROMPT_SP
|
||||||
|
export PROMPT_EOL_MARK=""
|
||||||
|
|
||||||
|
typeset -g POWERLEVEL9K_INSTANT_PROMPT=off
|
||||||
Reference in New Issue
Block a user