Skip to content

Commit

Permalink
Fix print commands alias
Browse files Browse the repository at this point in the history
  • Loading branch information
RustyTake-Off committed Jul 31, 2024
1 parent b13ee6f commit b1ab371
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wslfiles/.dots/scripts/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# GitHub - https://github.com/RustyTake-Off
# GitHub Repo - https://github.com/RustyTake-Off/dotfiles
# Author - RustyTake-Off
# Version - 0.1.12
# Version - 0.1.13

# Common aliases
alias cd......="cd ../../../../../.."
Expand Down Expand Up @@ -66,7 +66,9 @@ alias acoms="compgen -a | nl" # Print all aliases
alias bcoms="compgen -b | nl" # Print built-in shell commands
alias kcoms="compgen -k | nl" # Print shell reserved keywords
fccoms() {
compgen -c "$@" | uniq | nl
[ -z "$1" ] \
&& apropos -s 1 "" | sort | nl \
|| apropos -s 1 "" | grep "$@" | sort | nl
}
alias ccoms="fccoms" # Print all runnable commands

Expand Down

0 comments on commit b1ab371

Please sign in to comment.