44alias ls=' ls --color=auto'
55PS1=' [\u@\h \W]\$ '
66
7-
8- if [[ -r " ${XDG_CACHE_HOME:- $HOME / .cache} /p10k-instant-prompt-${(% ):-% n} .zsh" ]]; then
9- source " ${XDG_CACHE_HOME:- $HOME / .cache} /p10k-instant-prompt-${(% ):-% n} .zsh"
10- fi
11-
12- source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
13-
14- # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
15- [[ ! -f ~ /.p10k.zsh ]] || source ~ /.p10k.zsh
16-
177# Autosuggestions
188source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
199
@@ -22,7 +12,6 @@ source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.
2212# source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
2313
2414
25-
2615# Display ISO version and distribution information in short
2716alias version=" sed -n 1p /etc/os-release && sed -n 7p /etc/os-release && sed -n 8p /etc/os-release"
2817
@@ -47,10 +36,6 @@ alias fix-keys="sudo rm -rvf /etc/pacman.d/gnupg && sudo pacman-key --init && su
4736# bindkey '^[[1;5D' backward-word # Ctrl+Left arrow
4837
4938
50-
51-
52-
53-
5439# # Path section
5540# Set $PATH if ~/.local/bin exist
5641if [ -d " $HOME /.local/bin" ]; then
@@ -63,7 +48,6 @@ function set_win_title(){
6348}
6449precmd_functions+=(set_win_title)
6550
66-
6751# # Plugins section: Enable fish style features
6852# Use syntax highlighting
6953source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
@@ -130,6 +114,11 @@ SAVEHIST=10000
130114# Use emacs key bindings
131115bindkey -e
132116
117+ # Ctrl+ backspace delets the word
118+
119+ bindkey ' ^H' backward-kill-word
120+ bindkey ' 5~' kill-word
121+
133122# [PageUp] - Up a line of history
134123if [[ -n " ${terminfo[kpp]} " ]]; then
135124 bindkey -M emacs " ${terminfo[kpp]} " up-line-or-history
@@ -242,47 +231,6 @@ if [[ -n "${key[Alt-Right]}" ]]; then
242231 bindkey -M vicmd " ${key[Alt-Right]} " forward-word
243232fi
244233
245- # # Useful aliases
246- alias grubup=" sudo update-grub"
247- alias fixpacman=" sudo rm /var/lib/pacman/db.lck"
248- alias tarnow=' tar -acf '
249- alias untar=' tar -zxvf '
250- alias wget=' wget -c '
251- alias rmpkg=" sudo pacman -Rdd"
252- alias psmem=' ps auxf | sort -nr -k 4'
253- alias psmem10=' ps auxf | sort -nr -k 4 | head -10'
254- alias ..=' cd ..'
255- alias ...=' cd ../..'
256- alias ....=' cd ../../..'
257- alias .....=' cd ../../../..'
258- alias ......=' cd ../../../../..'
259- alias dir=' dir --color=auto'
260- alias vdir=' vdir --color=auto'
261- alias grep=' grep --color=auto'
262- alias fgrep=' grep -F --color=auto'
263- alias egrep=' grep -E --color=auto'
264- alias hw=' hwinfo --short' # Hardware Info
265- alias big=" expac -H M '%m\t%n' | sort -h | nl" # Sort installed packages according to size in MB (expac must be installed)
266- alias gitpkg=' pacman -Q | grep -i "\-git" | wc -l' # List amount of -git packages
267-
268- # Get fastest mirrors
269- alias mirror=" sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
270- alias mirrord=" sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
271- alias mirrors=" sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
272- alias mirrora=" sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
273-
274- # Help people new to Arch
275- alias apt-get=' man pacman'
276- alias apt=' man pacman'
277- alias helpme=' cht.sh --shell'
278- alias pacdiff=' sudo -H DIFFPROG=meld pacdiff'
279- alias please=' sudo'
280- alias tb=' nc termbin.com 9999'
281- alias upd=" /usr/bin/update"
282-
283- # Replace yay with paru if installed
284- [ ! -x /usr/bin/yay ] && [ -x /usr/bin/paru ] && alias yay=' paru'
285-
286234# Load Mcfly
287235export MCFLY_FUZZY=true
288236export MCFLY_RESULTS=20
0 commit comments