: bharatvaj/dotfiles

Cross platform dotfiles for linux, mac and windows

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
@echo off

doskey cat=type $*
doskey clear=cls
doskey d=curl -fLO $*

doskey dot=mklink /J "%XDG_HOME%\.git" "%XDG_DATA_HOME%\wt\dotfiles.git"
doskey undot=rmdir "%XDG_HOME%\.git"

doskey e=%EDITOR% $*
doskey g=git $*
doskey hb=sh "%XDG_HOME%\.local\bin\sh\hb" $*
doskey l=vifm .
doskey ls=dir /B $*
doskey m=make $*
doskey n=cd $*
doskey open=start $*
doskey pwd=cd
doskey rm=del $*
doskey x=sh "%XDG_HOME%\.local\bin\sh\extract.sh" $*
doskey killall=taskkill /f /im $*
doskey ?=lynx -cfg "%XDG_CONFIG_HOME%\lynx\lynx.cfg" $*

rem FIXME This has the draw back that, if scripts are launched in %WINDIR%\System32,
rem like "Open command prompt" or in any way, it will just cd into %USERPROFILE%
IF /I "%CD%"=="%WINDIR%\System32" (cd /D "%USERPROFILE%")

set FM=vifm

if exist "%XDG_CONFIG_HOME%\cmd\unstaged.cmd" @call %XDG_CONFIG_HOME%\cmd\unstaged.cmd