Further updates :)

This commit is contained in:
2021-06-05 01:17:37 +02:00
parent 59e46cffc6
commit ed4c95d7f4
10 changed files with 374 additions and 71 deletions

View File

@@ -24,9 +24,10 @@ alias lessf="less +F"
# List all files colorized in long format
alias l="exa -G --icons"
alias ll="exa -l"
alias ll="exa -l --icons"
alias lg="exa -lG"
alias lall="exa -laGhF --icons --git"
alias lall="exa -lahF --icons --git"
alias lalg="exa -laGhF --icons --git"
alias latree="exa -laGghHT --git --icons"
# List all files colorized in long format, including dot files
alias la="exa -la"
@@ -78,3 +79,5 @@ alias pscpu10='ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr | head
# top10 of the history
alias hist10='print -l ${(o)history%% *} | uniq -c | sort -nr | head -n 10'
alias cantbebothered='git add -a && git commit -m $(curl -s http://whatthecommit.com/index.txt | uwuify | cowsay -f $(ls /usr/share/cowsay/cows/ | shuf -n1) | lolcat ) && git push'
alias please='sudo'
alias runhis="anyframe-widget-execute-history"

View File

@@ -17,8 +17,8 @@ colors
# History Settings #
###############################################################################################################################
HISTFILE=~/.zsh_history #History file - zsh in name, to differentiate, idk
HISTSIZE=100001000 #100M history entries - storage space is cheap :)
SAVEHIST=100000000 #A margin to store some duplicates
HISTSIZE=1000010000 #1B history entries - storage space is cheap :)
SAVEHIST=1000000000 #A margin to store some duplicates
setopt INC_APPEND_HISTORY_TIME #Black magic, honestly - history nonblockingly gets written to histfile, but separate sessions keep their separate histories
setopt HIST_VERIFY #Forces user to confirm banging commands from history (!! pastes previous command to prompt)
setopt HIST_IGNORE_DUPS #Ignores duplicates of commands directly before
@@ -42,8 +42,8 @@ fi
autoload -U select-word-style
select-word-style bash
#GIANT KEYBOARD CONFIG BLOCK (From oh-my-zsh)
bindkey '\ew' kill-region # [Esc-w] - Kill from the cursor to the mark
#GIANT KEYBOARD CONFIG BLOCK (From oh-my-zsh)(with further changes)
bindkey '\ew' kill-region # [Esc-w] - Remove chars from the cursor to the mark
bindkey -s '\el' 'ls\n' # [Esc-l] - run command: ls
bindkey '^r' history-incremental-search-backward # [Ctrl-r] - Search backward incrementally for a specified string. The string may begin with ^ to anchor the search to the beginning of the line.
if [[ "${terminfo[kpp]}" != "" ]]; then
@@ -67,7 +67,7 @@ if [[ "${terminfo[kend]}" != "" ]]; then
bindkey "${terminfo[kend]}" end-of-line # [End] - Go to end of line
fi
bindkey ' ' magic-space # [Space] - do history expansion
bindkey ' ' magic-space # [Space] - do history expansion - !![space] pastes previous command, ![num][space] jumps to history entry
bindkey '^[[1;5C' forward-word # [Ctrl-RightArrow] - move forward one word
bindkey '^[[1;5D' backward-word # [Ctrl-LeftArrow] - move backward one word
@@ -151,7 +151,7 @@ setopt interactivecomments
zplug "plugins/emoji", from:oh-my-zsh
zplug "plugins/pyenv", from:oh-my-zsh
zplug "plugins/virtualenv", from:oh-my-zsh
zplug "plugins/pip", from:oh-my-zsh
zplug "plugins/nmap", from:oh-my-zsh
zplug "plugins/ipfs", from:oh-my-zsh
@@ -164,19 +164,19 @@ zplug "plugins/cargo", from:oh-my-zsh
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/colored-man-pages", from:oh-my-zsh
zplug "plugins/command-not-found", from:oh-my-zsh
zplug "plugins/web-search", from:oh-my-zsh
zplug "plugins/tmux", from:oh-my-zsh
zplug "plugins/urltools", from:oh-my-zsh
zplug "plugins/thefuck", from:oh-my-zsh #Used interchangably with
#setopt correct #<-This option
# Load completion library for those sweet [tab] squares
zplug "lib/completion", from:oh-my-zsh
zplug "mollifier/anyframe", from:github
# Misc. visual tweaks
zplug "oldratlee/hacker-quotes"
zplug "modules/prompt", from:prezto
zplug "Tarrasch/zsh-autoenv"
zplug "zpm-zsh/colors"
zplug "MichaelAquilina/zsh-autoswitch-virtualenv"
# Syntax highlighting for commands, load last
zplug "zsh-users/zsh-syntax-highlighting", from:github, defer:3
zplug "zsh-users/zsh-autosuggestions", defer:3
@@ -192,7 +192,7 @@ fi
# Then, source plugins and add commands to $PATH
zplug load
PATH="$PATH:/home/vectorkappa/.cargo/bin"
PATH="$PATH:/home/vectorkappa/.cargo/bin:/home/vectorkappa/.local/bin"
prompt pure
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh