Skip to content

Instantly share code, notes, and snippets.

@nivir
Forked from quent01/aliases
Created February 20, 2023 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nivir/9bf888165b423919c26a23f1b89c92d9 to your computer and use it in GitHub Desktop.
Save nivir/9bf888165b423919c26a23f1b89c92d9 to your computer and use it in GitHub Desktop.
CMDER aliases configuration
;= @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
;= -----------------------------------------------------
;=
;= $$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$$$\ $$$$$$$\
;= $$ __$$\ $$$\ $$$ |$$ __$$\ $$ _____|$$ __$$\
;= $$ / \__|$$$$\ $$$$ |$$ | $$\ $$ | $$ | $$ |
;= $$ | $$\$$\$$ $$ |$$ | $$\ $$$$$\ $$$$$$$ |
;= $$ | $$ \$$$ $$ |$$ | $$ / $$ __| $$ __$$<
;= $$ | $$\ $$ |\$ /$$ |$$ | $$ / $$ | $$ | $$ |
;= \$$$$$$ |$$ | \_/ $$ |$$$$$$$ / $$$$$$$$\ $$ | $$ |
;= \______/ \__| \__|\______/ \________|\__| \__|
;=
;= -----------------------------------------------------
;= ------- Reload cmder config -------------------------
init = %CMDER_ROOT%\vendor\init.bat
;= ------------------------------------------------
;= PATH SHORTCUT
;= ------------------------------------------------
$aliases = cd /d "%CMDER_ROOT%\config"
$cmderr = cd /d "%CMDER_ROOT%"
$home = cd /d C:\Users\Quentin
$host = cd /d C:\Windows\System32\drivers\etc
$go = cd /d D:\_GO\
$dev = cd /d "D:\_DEV\"
$doc = cd /d "D:\_DOCUMENTS\"
$play = cd /d "D:\_DEV\_PLAYGROUND\"
$tiz = cd /d "D:\_TIZ\"
$site = cd /d "D:\_SITES\public\"
$drupal = cd /d "D:\_SITES\public\_DRUPAL\"
$wp = cd /d "D:\_SITES\public\_WORDPRESS\"
;= ------------------------------------------------
;= LINUX COMMAND
;= ------------------------------------------------
.. = cd ..
... = cd ../..
.... = cd ../../..
e. = explorer .
clear = cls
e-aliases = code %CMDER_ROOT%\config\user-aliases.cmd
e-hosts = cd /d C:\Windows\System32\drivers\etc && vim hosts
find = %CMDER_ROOT%\vendor\git-for-windows\usr\bin\find.exe $*
grep = grep --color=auto
history = cat "%CMDER_ROOT%\config\.history"
l = ls -al
ls = ls -lat --show-control-chars -F --color $*
npmls = npm ls --global --depth=0
pwd = cd
unalias = alias /d $1
vi = vim $*
;= ------------------------------------------------
;= GIT
;= ------------------------------------------------
glog = git log --oneline --all --graph --decorate --color $*
gstatus = git status -s
gs = git status -s
gi = git init
gpo = git pull origin $*
gpom = git pull origin master
gpos = git pull origin stage
gpusho = git push origin $*
gpushom = git push origin master
gpushos = git push origin stage
gcm = git commit -m $*
gb = git branch --sort=-committerdate $*
;= gbranch = git branch -vv
gba = git branch -a $*
gbd = git branch -d $*
gc = git checkout $*
gcb = git checkout -b $*
;= ------- SHOW MY IP ADRESS ----------------------
myip = curl https://ipecho.net/plain
;= ------- VAGRANT --------------------------------
vup = vagrant up
vhalt = vagrant halt
vssh = vagrant ssh
vp = vagrant provision
vd = vagrant destroy
;= ------------------------------------------------
;= TOOLS
;= ------------------------------------------------
;= ------------------------------------------------
;= ALIASES FOR DIFFICULT TO REMEMBER COMMAND
;= ------------------------------------------------
;= ------------------------------------------------
;= LAUNCH PROGRAMM LIKE A NINJA
;= ------------------------------------------------
chrome = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" $*
ffoxx = "C:\Program Files (x86)\Firefox Developer Edition\firefox.exe" $*
;= Pro (alphabetical order)
gandi = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.gandi.net/fr
nbs = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://support.nbs-system.com/otrs/customer.pl#FollowUp
sdv = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://requete.sdv.fr/
ovh = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.ovh.com/fr
zd = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://desk.zoho.com/support/agencetiz/ShowHomePage.do#Cases/q/priority
zp = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://projects.zoho.com/portal/agencetiz#myfeed
;= Perso (alphabetical order)
az = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.amazon.fr/
bb = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://bitbucket.org/dashboard/overview
bb-snip = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://bitbucket.org/tizdev/workspace/snippets/
cg = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.codingame.com/home
ever = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://evernote.com
gc = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://calendar.google.com/calendar/r
github = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://github.com/
gmail = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://mail.google.com/mail/u/0/
osm = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.openstreetmap.org/
proton = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://mail.protonmail.com/login
sp = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://open.spotify.com/
yt = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.youtube.com/
;= illustrator = "C:\Program Files (x86)\Adobe\Adobe Illustrator CC 2018\Support Files\Contents\Windows\Illustrator.exe"
;= ps = "C:\Program Files (x86)\Adobe\Adobe Photoshop CC 2018\Photoshop.exe"
sub = "C:\Program Files\Sublime Text 3\sublime_text.exe"
sub. = "C:\Program Files\Sublime Text 3\subl.exe" .
vs = code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment