Windows stuff appears for the first time.
This commit is contained in:
parent
4330435093
commit
ba7d11e7f8
@ -1,3 +0,0 @@
|
|||||||
export AQSISHOME=/Applications/Aqsis.app # Entry managed by Aqsis Renderer
|
|
||||||
export PATH=$AQSISHOME/Contents/MacOS:$PATH # Entry managed by Aqsis Renderer
|
|
||||||
source ~/.bashrc
|
|
5
.bash_rc.d/00.wsl.sh
Normal file
5
.bash_rc.d/00.wsl.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# AUTHOR: Jeremy Wall (jw), jeremy@marzhillstudios.com
|
||||||
|
if [[ -n "$(uname -a | grep Microsoft)" ]]; then
|
||||||
|
export INWSL="true"
|
||||||
|
fi
|
@ -6,7 +6,7 @@ insert_path_element_before /opt/brew/bin
|
|||||||
insert_path_element $GOPATH/bin
|
insert_path_element $GOPATH/bin
|
||||||
insert_path_element $HOME/.cabal/bin
|
insert_path_element $HOME/.cabal/bin
|
||||||
insert_path_element /usr/texbin
|
insert_path_element /usr/texbin
|
||||||
insert_path_element $HOME/.cargo/bin
|
insert_path_element_before $HOME/.cargo/bin
|
||||||
|
|
||||||
export ALTERNATE_EDITOR=""
|
export ALTERNATE_EDITOR=""
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
|
@ -1 +0,0 @@
|
|||||||
|
|
@ -1 +1 @@
|
|||||||
/Users/jwall/sandbox/apps/urbit/extras/hoon-mode.el/hoon-mode.el
|
C:/Users/jwall/sandbox/apps/urbit/extras/hoon-mode.el/hoon-mode.el
|
@ -1 +1 @@
|
|||||||
/Users/jwall/.mjolnir
|
C:/Users/jwall/.mjolnir
|
17
.hgignore
17
.hgignore
@ -1,17 +0,0 @@
|
|||||||
.bash_rc.d/99.local.sh
|
|
||||||
.cabal/bin
|
|
||||||
.cabal/config.platform
|
|
||||||
.cabal/lib
|
|
||||||
.cabal/logs
|
|
||||||
.cabal/packages
|
|
||||||
.cabal/share
|
|
||||||
.cabal/world
|
|
||||||
.emacs.d/ac-comphist.dat
|
|
||||||
.emacs.d/auto-save-list
|
|
||||||
.emacs.d/elpa
|
|
||||||
.emacs.d/srecode-map.el
|
|
||||||
.emacs.d/tramp
|
|
||||||
.emacs.d/url
|
|
||||||
.emacs.d/semantic
|
|
||||||
.emacs.d/session
|
|
||||||
|
|
2
.profile
2
.profile
@ -1,3 +1 @@
|
|||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
|
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
|
||||||
|
50
PS/PowerShellProfile.ps1
Normal file
50
PS/PowerShellProfile.ps1
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# My powershell profile.
|
||||||
|
|
||||||
|
# customize the prompt to be a little more useful
|
||||||
|
function prompt {
|
||||||
|
Write-Host -NoNewLine "["
|
||||||
|
Write-Host -NoNewLine -Fore Green ("{0:HH}:{0:mm}" -f $(get-date))
|
||||||
|
Write-Host -NoNewLine "] "
|
||||||
|
Write-Host -Fore Cyan "${pwd}"
|
||||||
|
"PS> "
|
||||||
|
}
|
||||||
|
|
||||||
|
function Invoke-Elevated {
|
||||||
|
param (
|
||||||
|
[ScriptBlock]
|
||||||
|
$code
|
||||||
|
)
|
||||||
|
# Elevate our permissions for this first.
|
||||||
|
Start-Process powershell.exe -ArgumentList $code -WindowStyle hidden -Verb RunAs
|
||||||
|
}
|
||||||
|
|
||||||
|
# helper command to get whether we are running under elevated privileges or not.
|
||||||
|
function Get-Elevated {
|
||||||
|
([Security.Principal.WindowsPrincipal] `
|
||||||
|
[Security.Principal.WindowsIdentity]::GetCurrent() `
|
||||||
|
).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
|
||||||
|
}
|
||||||
|
|
||||||
|
# Helper command to make symbolic links.
|
||||||
|
function New-Link {
|
||||||
|
param (
|
||||||
|
[Parameter(Position=0, Mandatory=$true)]
|
||||||
|
[String[]]
|
||||||
|
$Source,
|
||||||
|
|
||||||
|
[Parameter(Position=1, Mandatory=$true)]
|
||||||
|
[String[]]
|
||||||
|
$Destination
|
||||||
|
)
|
||||||
|
|
||||||
|
# This is a bit of a hack but it's necessary until they make it possible
|
||||||
|
# to do symbolic links without administrator privileges
|
||||||
|
if (Get-Elevated) {
|
||||||
|
New-Item -ItemType SymbolicLink -Path $Destination -Target $Source
|
||||||
|
} else {
|
||||||
|
# Elevate our permissions for this first.
|
||||||
|
Invoke-Elevated {
|
||||||
|
New-Item -ItemType SymbolicLink -Path $Destination -Target $Source
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
15
PS/bootstrap.ps1
Normal file
15
PS/bootstrap.ps1
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#Powershell based windows 10 bootstrap script
|
||||||
|
|
||||||
|
# First we source in our powershell profile so we can have some useful utilities
|
||||||
|
source "./PowerShellProfile.ps1"
|
||||||
|
|
||||||
|
# First step is to overwrite our current profile with a symlink to the correct one.
|
||||||
|
Remove-Item -Force -Path $profile
|
||||||
|
Make-Link -Source "./PowerShellProfile.ps1" -Destination $profile
|
||||||
|
|
||||||
|
# Now ensure our dnsservers are properly set up
|
||||||
|
Invoke-Elevated {
|
||||||
|
Get-NetAdapter | ForEach-Object {
|
||||||
|
Set-DnsClientServerAddress -InterfaceIndex $_.ifIndex -ServerAddresses 1.1.1.1,1.0.0.1,2606:4700:4700::1111,2606:4700:4700::1001
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +1,10 @@
|
|||||||
param (
|
param (
|
||||||
[string]
|
[string]
|
||||||
$CommandPath = "rxvt-unicode"
|
$CommandPath = "konsole"
|
||||||
)
|
)
|
||||||
|
|
||||||
Start-Process -FilePath "wsl.exe" -ArgumentList $CommandPath -NoNewWindow
|
# Set the display variable for this process
|
||||||
|
Set-Item -Path Env:DISPLAY "127.0.0.1:0.0"
|
||||||
|
Set-Item -Path Env:WSLENV "DISPLAY/u"
|
||||||
|
|
||||||
|
Start-Process -FilePath "wsl.exe" -ArgumentList $CommandPath -WindowStyle Hidden
|
Loading…
x
Reference in New Issue
Block a user