Skip to content

Instantly share code, notes, and snippets.

@jmscarnatto
Created April 21, 2022 19:16
Show Gist options
  • Select an option

  • Save jmscarnatto/85a91b49c1ad61d057d1d2ba74f2c4b1 to your computer and use it in GitHub Desktop.

Select an option

Save jmscarnatto/85a91b49c1ad61d057d1d2ba74f2c4b1 to your computer and use it in GitHub Desktop.
alias ll="ls -al"
alias linda='ls -lah | sort -r | awk '\''NF==9 { if ($1~/^d/) { printf $1 "/" $2 "/" $3 "/" $4 "/" $5 "/" $6 " " $7 "/" $8 " " "\033[1;34m" $9 "\033[0m" "\n" } else { printf $1 "/" $2 "/" $3 "/" $4 "/" $5 "/" $6 " " $7 "/" $8 " " "\033[1;32m" $9 "\033[0m" "\n" } }'\'' | column -t -s"/"'
alias dps="docker ps"
alias dcps="docker compose ps"
alias dim="docker images"
alias bus="cd ~/Documents/Projects/Clients/BusPatrol"
alias gck="git checkout"
alias gil="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gis="git status"
alias gita="git commit --amend --no-edit"
alias vim="nvim"
#alias vi="nvim"
alias oldvim="\vim"
function rpi-2(){
ssh pi@10.10.10.3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment