Last active
March 7, 2020 11:36
-
-
Save fredjoseph/229502d4520d248ec70fa8f13fbf9ada to your computer and use it in GitHub Desktop.
[Cmder] my user aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;= @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 | |
e.=explorer . | |
ls=ls --show-control-chars -F --color $* | |
pwd=cd | |
clear=cls | |
history=cat "%CMDER_ROOT%\config\.history" | |
unalias=alias /d $1 | |
vi=vim $* | |
cmderr=cd /d "%CMDER_ROOT%" | |
..=cd .. | |
~=cd %HOMEPATH% | |
ll=ls -gohlat --show-control-chars -F --color $* | |
treeall=tree /a /f | |
;= rem installs previously exported scoop apps | |
scoopimport=powershell "Get-Content $* | sls '(.+) \(' |% { $_.matches.groups[1].value } |% {scoop install $_}" | |
gpa=%GIT_INSTALL_ROOT%/usr/bin/find . -mindepth 1 -maxdepth 1 -type d -execdir test -d '{}/.git' ; -exec echo -e "\n{}" ; -exec git --git-dir="{}"/.git --work-tree="{}" pull ; | |
gsa=%GIT_INSTALL_ROOT%/usr/bin/find . -mindepth 1 -maxdepth 1 -type d -execdir test -d '{}/.git' ; -exec echo -e "\n{}" ; -exec git --git-dir="{}"/.git --work-tree="{}" status ; | |
toFR=curl "https://de.pons.com/_translate/translate" --data "source_language=en&target_language=fr&service=deepl&text=""$*""&lookup=true&requested_by=Web&source_language_confirmed=true" | jq .translation | |
toEN=curl "https://de.pons.com/_translate/translate" --data "source_language=fr&target_language=en&service=deepl&text=""$*""&lookup=true&requested_by=Web&source_language_confirmed=true" | jq .translation | |
bro=curl bropages.org/$1.json | jq -r ".[].msg" | highlight --out-format=truecolor --syntax=bash | less -R | |
cht=curl cht.sh/$1 | less -R |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment