Commit 7f397a14 authored by Amanda Cameron's avatar Amanda Cameron
Browse files

Update

parent 2adc624b
$global:DDNA_GITLAB = [pscredential]::new("AuthToken", (ConvertTo-SecureString -AsPlainText -Force (Get-Content ~/.gitlab-token)))
function ConvertTo-PSObject {
......@@ -38,6 +37,10 @@ function Get-StationeersChangelog {
}
}
{{ if .programs.plan9port }}
Set-Alias -Name nine -Value 9
{{ end }}
{{ if and (index . "directories" "nextcloud") (index . "programs" "calibre") (index . "directories" "code") -}}
#region Manga Utils
......@@ -183,7 +186,7 @@ function Import-Manga {
-CurrentOperation ("Importing Volume {0}" -f $_.Name)
Import-Book `
-Library 'http://localhost:8082/' `
-Library 'https://camnas.darkdna.net:9002/' `
-Files $EPub `
-Title ("{0} - Volume {1}" -f $Name, $_.Name) `
-Authors $Authors `
......@@ -212,7 +215,7 @@ function Import-Manga {
if ($PSCmdlet.ShouldProcess($_.File.Name, "Import Chapter")) {
"Adding {0}" -f $_.File.FullName
Import-Book `
-Library 'http://localhost:8082/' `
-Library 'https://camnas.darkdna.net:9002/' `
-Files $EPub `
-Title ('{1} - V{2}C{3}: {0}' -f $_.Name, $Name, $_.Volume, $_.Chapter) `
-Authors $Authors `
......@@ -337,7 +340,7 @@ function Import-WebBook {
if ($PSCmdlet.ShouldProcess($Title, "Import Book")) {
Import-Book @InsertArgs `
-Library 'http://localhost:8082/' `
-Library 'https://camnas.darkdna.net:9002/' `
-DuplicateAction $DuplicateAction `
-Title $Title `
-Files @($OutputEPub)
......@@ -426,7 +429,6 @@ Get-Command -Module 1Password -Verb Get | ForEach-Object {
$PSDefaultParameterValues["Install-Module:Scope"] = "CurrentUser"
Import-Module PSReadline
Import-Module posh-git
......
{{- if (index . "programs" "gpg-pinentry") -}}
{{ $pinentry := (index . "programs" "gpg-pinentry") -}}
pinentry-program {{ $pinentry }}
{{ end -}}
\ No newline at end of file
......@@ -9,23 +9,28 @@ export PATH="$HOME/.cargo/bin:$PATH"
{{ if index . "programs" "vscode" -}}
# VSCode Stuff
export EDITOR="vscode-wait"
{{- end }}
{{ end -}}
{{ if index . "directories" "code" -}}
# Code Stuff
export GOPATH="{{ .directories.code }}/go"
export PATH="$PATH:{{ .directories.code }}/DarkDNA/manifest/bin:{{ .directories.code }}/go/bin:{{ .directories.code }}/github/flutter/flutter/bin"
{{- end }}
{{ end -}}
{{ if index . "directories" "android-sdk" -}}
{{ $sdk := index . "directories" "android-sdk" -}}
# Android SDK Stuff
export ANDROID_HOME="$sdk/"
export PATH="$PATH:$sdk/platform-tools:$sdk/tools"
{{- end }}
{{ end -}}
{{ if index . "directories" "nextcloud" -}}
# Nextcloud Desktop Integration
export XDG_MUSIC_DIR={{.directories.nextcloud}}/Music
{{ end -}}
{{ if index . "programs" "linuxbrew" -}}
# LinuxBrew stuff.
export PATH="$PATH:{{ .programs.linuxbrew }}/bin"
eval $(brew shellenv)
{{- end }}
\ No newline at end of file
{{ end -}}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment