From 343be15cce4e136b2a47716db6009e8bdb5b5c02 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 16 Nov 2021 11:31:57 +0200 Subject: Ditched oh-my-zsh in faviour of manual script management, also changed some settings --- .zshrc | 45 +++++++++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 14 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index 919715f..10b8991 100644 --- a/.zshrc +++ b/.zshrc @@ -12,8 +12,6 @@ # General {{{ # Exports {{{ - export ZSH="/home/kamen/.oh-my-zsh" - export PATH=$HOME/bin:/usr/local/bin:$PATH # Adds ~/bin and /usr/local/bin paths to PATH export PATH="$PATH:$HOME/.npm-global/bin" # Adds ~/.npm-global/bin path to PATH @@ -44,21 +42,19 @@ # ENABLE_CORRECTION="true" # command auto-correction # COMPLETION_WAITING_DOTS="true" # display red dots while waiting for completion # DISABLE_UNTRACKED_FILES_DIRTY="true" # disable marking untracked files under VCS as dirty; improves status check for large repos - ### }}} - - # Plugins {{{ - # Standard plugins: $ZSH/plugins/; Custom plugins: $ZSH_CUSTOM/plugins/ - plugins=(git) - - source $ZSH/oh-my-zsh.sh - - export NVM_DIR="$HOME/.nvm" - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm - [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion # }}} # Other {{{ stty -F/dev/tty -ixon -ixoff # Disables Software Flow Control + setopt long_list_jobs + + # Changing/making/removing directory + setopt auto_pushd + setopt pushd_ignore_dups + setopt pushdminus + + # recognize comments + setopt interactivecomments # }}} # }}} @@ -206,6 +202,19 @@ # }}} # }}} +# Plugins {{{ + # omz plugins {{{ + source ~/.zsh/omz/history.zsh + source ~/.zsh/omz/termsupport.zsh + source ~/.zsh/omz/key-bindings.zsh + source ~/.zsh/omz/compfix.zsh + # }}} + + # zsh-syntax-highlighting {{{ + source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + # }}} +# }}} + # Aliases {{{ # dnf {{{ alias sdi="sudo dnf install -y" @@ -248,6 +257,8 @@ # }}} # Application specific {{{ + alias combinepdf="gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=temp.pdf" + alias lg="lazygit" alias v="vim" @@ -291,7 +302,13 @@ grit add -p $parent -- $@ } fi - + + if [[ -x "$(command -v nemo)" ]]; then + onemo() { + bgr "nemo ./" + } + fi + # Execute multiple commands mexec () { for cmd in "${@[@]}"; do -- cgit v1.2.3