Add initial config
This commit is contained in:
commit
8e313873c8
182 changed files with 14784 additions and 0 deletions
45
zsh/.config/zsh/.zshrc
Normal file
45
zsh/.config/zsh/.zshrc
Normal file
|
@ -0,0 +1,45 @@
|
|||
# Plugins
|
||||
source $ZDOTDIR/zsh-git-prompt/zshrc.sh
|
||||
source $ZDOTDIR/window-title-bar.sh
|
||||
source $ZDOTDIR/git-aliases.sh
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
# The following lines were added by compinstall
|
||||
|
||||
zstyle ':completion:*' completer _complete _ignored
|
||||
zstyle ':completion:*' list-colors ''
|
||||
zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-]=* r:|=*'
|
||||
zstyle ':completion:*' menu select=long
|
||||
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
|
||||
zstyle :compinstall filename '/home/julius/.config/zsh/.zshrc'
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
# End of lines added by compinstall
|
||||
# Lines configured by zsh-newuser-install
|
||||
HISTFILE=~/.histfile
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
setopt autocd extendedglob nomatch notify
|
||||
unsetopt beep
|
||||
bindkey -v
|
||||
# End of lines configured by zsh-newuser-install
|
||||
|
||||
bindkey '^R' history-incremental-search-backward
|
||||
# Commands beginning with space are excluded from the history
|
||||
setopt hist_ignore_space
|
||||
|
||||
# set PATH so it includes user's private bin directories
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
|
||||
# Aliases
|
||||
alias grep='grep --color=auto'
|
||||
alias wget='wget -c'
|
||||
alias mkdir='mkdir -pv'
|
||||
alias ls='ls -CF --color=auto'
|
||||
alias vim=nvim
|
||||
# Exports
|
||||
export EDITOR=nvim
|
||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||
export PROMPT="%F{12}[%f%F{10}%n%f%F{12}@%f%F{white}%m%f%F{12}]%f%F{white}:%f %F{white}%~%f%F{12}>%b$(git_super_status)%f%F{10}%(!.#.$)%f "
|
||||
PROMPT='%F{12}[%F{10}%n%F{12}@%F{white}%m%F{12}]%F{white}: %~%F{12}>$(git_super_status)%F{10}%(!.#.$)%f '
|
7
zsh/.config/zsh/git-aliases.sh
Normal file
7
zsh/.config/zsh/git-aliases.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/zsh
|
||||
|
||||
alias Gst="git status"
|
||||
alias Gco="git checkout"
|
||||
alias Gd="git diff"
|
||||
alias Gds="git diff --staged"
|
||||
alias Gc="git commit"
|
19
zsh/.config/zsh/window-title-bar.sh
Normal file
19
zsh/.config/zsh/window-title-bar.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/zsh
|
||||
|
||||
if [[ "${TERM}" != "" && "${TERM}" == "alacritty" ]]
|
||||
then
|
||||
precmd()
|
||||
{
|
||||
# output on which level (%L) this shell is running on.
|
||||
# append the current directory (%~), substitute home directories with a tilde.
|
||||
# "\a" bell (man 1 echo)
|
||||
# "print" must be used here; echo cannot handle prompt expansions (%L)
|
||||
print -Pn "\e]0;$(id --user --name)@$(hostname): zsh[%L] %~\a"
|
||||
}
|
||||
|
||||
preexec()
|
||||
{
|
||||
# output current executed command with parameters
|
||||
echo -en "\e]0;$(id --user --name)@$(hostname): ${1}\a"
|
||||
}
|
||||
fi
|
1
zsh/.zshenv
Normal file
1
zsh/.zshenv
Normal file
|
@ -0,0 +1 @@
|
|||
export ZDOTDIR=$HOME/.config/zsh
|
Loading…
Add table
Add a link
Reference in a new issue