Skip to content

Commit

Permalink
Update aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
RustyTake-Off committed Aug 19, 2024
1 parent 8a36164 commit e4bae83
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 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.14
# Version - 0.1.15

# Common aliases
alias cd......="cd ../../../../../.."
Expand Down Expand Up @@ -70,12 +70,12 @@ alias brup="brew upgrade"

alias acoms="compgen -a | nl" # Print all aliases
alias bcoms="compgen -b | nl" # Print built-in shell commands
fccoms() {
__f__ccoms() {
[ -z "$1" ] \
&& apropos -s 1 "" | sort | nl \
|| apropos -s 1 "" | grep "$@" | sort | nl
}
alias ccoms="fccoms" # Print all runnable commands
alias ccoms="__f__ccoms" # Print all runnable commands
alias fcoms="compgen -A function | nl" # Print all functions that you could run
alias kcoms="compgen -k | nl" # Print shell reserved keywords

Expand Down Expand Up @@ -122,9 +122,9 @@ alias pipsetreq="pip freeze --require-virtualenv -l >"
alias pipgetreq="pip install --require-virtualenv --upgrade -r"

# Docker aliases
alias dc="docker"
alias dcps="docker ps"
alias dcim="docker images"
alias d="docker"
alias dps="docker ps"
alias dcmi="docker images"
alias dcv="docker volume"
alias dcn="docker network"
alias dcs="docker stats"
Expand All @@ -138,12 +138,12 @@ alias dcrm="docker rm"
alias dcrma="docker rm $(docker ps -aq --filter 'status=exited')"
alias dcl="docker logs"
alias dckl="docker kill"
fdci() {
__f__dci() {
[ -z "$2" ] \
&& docker inspect "$1" | jq -r ".[0]" \
|| docker inspect "$1" | jq -r ".[0].$2"
}
alias dci="fdci"
alias dci="__f__dci"

alias dcb="docker build -t"
alias dcpl="docker pull"
Expand Down

0 comments on commit e4bae83

Please sign in to comment.