Skip to content

Instantly share code, notes, and snippets.

@herrera-ignacio
Created April 26, 2022 18:44
Show Gist options
  • Save herrera-ignacio/c2915551fe2719d47e55892ac5c34698 to your computer and use it in GitHub Desktop.
Save herrera-ignacio/c2915551fe2719d47e55892ac5c34698 to your computer and use it in GitHub Desktop.
cmder alias
;= @echo off
;= rem Call DOSKEY and use this file as the macrofile
;= %SystemRoot%\system32\doskey /listsize=1000 /macrofile=%0%
;= rem In batch mode, jump to the end of the file
;= goto:eof
;= Add aliases below here
;= ## SYSTEM ##
ls=ls --show-control-chars -F --color -a $*
pwd=cd
..=cd ..
clear=cls
unalias=alias /d $1
vi=vim $*
cmderr=cd "%CMDER_ROOT%"
help=cat "%CMDER_ROOT%\config\user_aliases.cmd"
dev=cd "C:\Users\HERRERI\Documents\dev"
;= ## GIT ##
gl=git log --oneline --all --graph --decorate $*
diff=git log --no-merges --pretty=format:"%Cgreen%h %Creset>> %s << %as, %ar %Cred(%an, %ae)" $1
diffc= git log --no-merges --pretty=format:"%Cgreen%h %Creset>> %s << %as, %ar %Cred(%an, %ae)" --ancestry-path $1
;= ## K8S ##
azlogin=az login --use-device-code
k=kubectl $*
kpods=kubectl get pods
klogs=kubectl logs -f $1
kns=kubectl get namespaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment