mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 07:29:09 +00:00 
			
		
		
		
	Compare commits
	
		
			4 Commits
		
	
	
		
			revision/u
			...
			pull/539-p
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					a97e8de21b | ||
| 
						 | 
					725e7720de | ||
| 
						 | 
					af003d83c5 | ||
| 
						 | 
					839f4a7b83 | 
@@ -22,11 +22,7 @@ Aliases
 | 
			
		||||
-------
 | 
			
		||||
 | 
			
		||||
  - `d` prints the contents of the directory stack.
 | 
			
		||||
 | 
			
		||||
Functions
 | 
			
		||||
---------
 | 
			
		||||
 | 
			
		||||
  - `command_not_found_handler` changes the directory to the **n** previous one.
 | 
			
		||||
  - `1 ... 9` changes the directory to the **n** previous one.
 | 
			
		||||
 | 
			
		||||
Authors
 | 
			
		||||
-------
 | 
			
		||||
 
 | 
			
		||||
@@ -1,13 +0,0 @@
 | 
			
		||||
#
 | 
			
		||||
# Changes the directory to the n previous one.
 | 
			
		||||
#
 | 
			
		||||
# Authors:
 | 
			
		||||
#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
if [[ "$1" == [[:digit:]]## ]]; then
 | 
			
		||||
  builtin cd "+$1"
 | 
			
		||||
else
 | 
			
		||||
  return 127
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
@@ -27,4 +27,5 @@ unsetopt CLOBBER            # Do not overwrite existing files with > and >>.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
alias d='dirs -v'
 | 
			
		||||
for index ({1..9}) alias "$index"="cd +${index}"; unset index
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -9,10 +9,13 @@
 | 
			
		||||
pacman --query --explicit --info \
 | 
			
		||||
  | awk '
 | 
			
		||||
      BEGIN {
 | 
			
		||||
        FS=":"
 | 
			
		||||
        FS=" : "
 | 
			
		||||
      }
 | 
			
		||||
      /^Name/ {
 | 
			
		||||
        print $2
 | 
			
		||||
        printf "\033[0;01m" $2 "\033[0m"
 | 
			
		||||
      }
 | 
			
		||||
      /^Version/ {
 | 
			
		||||
        print " \033[1;32m" $2 "\033[0m"
 | 
			
		||||
      }
 | 
			
		||||
      /^Description/ {
 | 
			
		||||
        print $2
 | 
			
		||||
 
 | 
			
		||||
@@ -28,6 +28,7 @@ if (( $+commands[$_pacman_frontend] )); then
 | 
			
		||||
    source "${0:h}/${_pacman_frontend}.zsh"
 | 
			
		||||
  fi
 | 
			
		||||
else
 | 
			
		||||
  _pacman_frontend='pacman'
 | 
			
		||||
  _pacman_sudo='sudo '
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
@@ -36,7 +37,7 @@ fi
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
# Pacman.
 | 
			
		||||
alias pac= "${_pacman_frontend}"
 | 
			
		||||
alias pac="${_pacman_frontend}"
 | 
			
		||||
 | 
			
		||||
# Installs packages from repositories.
 | 
			
		||||
alias paci="${_pacman_sudo}${_pacman_frontend} --sync"
 | 
			
		||||
@@ -63,7 +64,7 @@ alias pacs="${_pacman_frontend} --sync --search"
 | 
			
		||||
alias pacS="${_pacman_frontend} --query --search"
 | 
			
		||||
 | 
			
		||||
# Lists orphan packages.
 | 
			
		||||
alias pacman-list-orphans="${_pacman_sudo}${_pacman_frontend} --query --deps --unrequired"
 | 
			
		||||
alias pacman-list-orphans="${_pacman_frontend} --query --deps --unrequired"
 | 
			
		||||
 | 
			
		||||
# Removes orphan packages.
 | 
			
		||||
alias pacman-remove-orphans="${_pacman_sudo}${_pacman_frontend} --remove --recursive \$(${_pacman_frontend} --quiet --query --deps --unrequired)"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user