-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.localrc
68 lines (51 loc) · 1.83 KB
/
.localrc
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Dawid Ferenczy 2014 - 2019
# http://github.com/ferenczy/dotfiles
# ~/.localrc: user or machine specific settings.
# Cygwin / Mingw specific settings
if [[ `uname -s` == CYGWIN* || `uname -s` == MINGW* ]] ; then
# auto-complete executables without .exe extension
shopt -s completion_strip_exe
# fix VirtualBox's & Vagrant's HOME to Windows user's profile
export VAGRANT_HOME="d:/data/vagrant/"
export VBOX_USER_HOME="C:/Users/$USER/.VirtualBox/"
export PATH=$PATH:"/cygdrive/c/Program Files/Oracle/VirtualBox/"
# vboxmanage setproperty machinefolder "D:\\virtuals\\"
# disable apt-cyg WPAD (Web Proxy AutoDiscovery)
export APT_CYG_PROXY=inherit
# Notepad++
np() {
cygstart "/cygdrive/c/Program Files (x86)/Notepad++/notepad++.exe" `cygpath -wa "$*"`
}
# Atom Editor
atom() {
cygstart "/cygdrive/c/Users/ferenczy/AppData/Local/atom/atom.exe" `cygpath -wa "$*"`
}
# Total Commander
tc() {
# set _DIR to current directory when called without argument
[[ -z ${*} ]] && _DIR=. || _DIR=$*
cygstart "/cygdrive/c/Program Files/totalcmd9/TOTALCMD64.EXE" -O -T `cygpath -wa "$_DIR"`
unset _DIR
}
kdiff() {
cygstart "/cygdrive/c/Program Files/KDiff3/kdiff3.exe" `cygpath -wap $*`
}
winmerge() {
cygstart "/cygdrive/c/Program Files (x86)/WinMerge/WinMergeU.exe" `cygpath -wap $*`
}
cygpathtest () {
echo Params: $*
echo `cygpath -wap $*`
}
fi
# Cygwin specific settings
if [[ `uname -s` == CYGWIN* ]] ; then
#export SSH_AUTH_SOCK="/tmp/.ssh-agent"
# ssh-pageant
eval $(/usr/bin/ssh-pageant -ra /tmp/.ssh-pageant)
fi
# Mingw specific settings
if [[ `uname -s` == MINGW* ]] ; then
export SSH_AUTH_SOCK="/c/Users/ferenczy/.ssh/.ssh-agent"
fi
source ~/.azure-cli/az.completion