Update 3 files
- /home/dot_local/bin/executable_install-program - /home/private_dot_config/shell/exports.sh.tmpl - /software.yml
This commit is contained in:
parent
78f97d6d1e
commit
94f30ed1ef
3 changed files with 30 additions and 20 deletions
|
@ -643,7 +643,7 @@ async function beforeInstall(packageManager) {
|
||||||
if (unbuffer) {
|
if (unbuffer) {
|
||||||
unbufferPrefix = 'unbuffer'
|
unbufferPrefix = 'unbuffer'
|
||||||
}
|
}
|
||||||
await $`ANSIBLE_CONFIG=${process.env.HOME}/.local/share/ansible/ansible.cfg ${unbufferPrefix} ansible 127.0.0.1 -vv -e '{ ansible_connection: "local", ansible_become_user: "${process.env.USER}", ansible_user: "${process.env.USER}", install_homebrew: False }' -m setup`
|
await $`ANSIBLE_CONFIG=${process.env.HOME}/.local/share/ansible/ansible.cfg ${unbufferPrefix} ansible 127.0.0.1 -e '{ ansible_connection: "local", ansible_become_user: "${process.env.USER}", ansible_user: "${process.env.USER}", install_homebrew: False }' -m setup`
|
||||||
} else if (packageManager === 'apk') {
|
} else if (packageManager === 'apk') {
|
||||||
await $`sudo apk update`
|
await $`sudo apk update`
|
||||||
} else if (packageManager === 'apt') {
|
} else if (packageManager === 'apt') {
|
||||||
|
@ -1100,8 +1100,8 @@ async function installPackageList(packageManager, packages) {
|
||||||
if (unbuffer) {
|
if (unbuffer) {
|
||||||
unbufferPrefix = 'unbuffer'
|
unbufferPrefix = 'unbuffer'
|
||||||
}
|
}
|
||||||
const verboseMode = process.env.DEBUG_MODE === 'on' ? 'vv' : ''
|
const verboseMode = process.env.DEBUG_MODE === 'on' ? '-vvv' : ''
|
||||||
await $`ANSIBLE_CONFIG=${process.env.HOME}/.local/share/ansible/ansible.cfg ansible 127.0.0.1 -v${verboseMode} -e '{ ansible_connection: "local", ansible_become_user: "root", ansible_user: "${process.env.USER}", install_homebrew: False }' -m include_role -a name=${pkg}`
|
await $`ANSIBLE_CONFIG=${process.env.HOME}/.local/share/ansible/ansible.cfg ansible 127.0.0.1 ${verboseMode} -e '{ ansible_connection: "local", ansible_become_user: "root", ansible_user: "${process.env.USER}", install_homebrew: False }' -m include_role -a name=${pkg}`
|
||||||
log('success', 'Install', `${pkg} successfully installed via ${packageManager}`)
|
log('success', 'Install', `${pkg} successfully installed via ${packageManager}`)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('error', 'Install Failure', `There was an error installing ${pkg} with Ansible`)
|
log('error', 'Install Failure', `There was an error installing ${pkg} with Ansible`)
|
||||||
|
@ -1531,8 +1531,12 @@ async function linkBin(installOrdersBinLink) {
|
||||||
if(!which.sync(binLink.bin, { nothrow: true })) {
|
if(!which.sync(binLink.bin, { nothrow: true })) {
|
||||||
if (binLink.preference === 'flatpak' && flatpak) {
|
if (binLink.preference === 'flatpak' && flatpak) {
|
||||||
try {
|
try {
|
||||||
await runSilentCommand(`test -d ${flatpakDir}/app/${pkg}`)
|
runCommand(`Adding bin link for ${pkg} (${binLink.bin})`, `
|
||||||
await $`mkdir -p "${process.env.HOME}/.local/bin/flatpak" && echo "flatpak run ${pkg}" > "${process.env.HOME}/.local/bin/flatpak/${binLink.bin}"`
|
test -d ${flatpakDir}/app/${pkg}
|
||||||
|
mkdir -p "${process.env.HOME}/.local/bin/flatpak"
|
||||||
|
echo "flatpak run ${pkg}" > "${process.env.HOME}/.local/bin/flatpak/${binLink.bin}"
|
||||||
|
`)
|
||||||
|
log('success', 'Bin', `Linked ~/.local/bin/flatpak/${binLink.bin} to the ${pkg} Flatpak`)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('warn', 'Bin', `Expected flatpak directory not available - ${flatpakDir}/app/${pkg}`)
|
log('warn', 'Bin', `Expected flatpak directory not available - ${flatpakDir}/app/${pkg}`)
|
||||||
}
|
}
|
||||||
|
@ -1540,10 +1544,16 @@ async function linkBin(installOrdersBinLink) {
|
||||||
try {
|
try {
|
||||||
const caskWhen = softwarePackages[binLink.package]["_when:cask"]
|
const caskWhen = softwarePackages[binLink.package]["_when:cask"]
|
||||||
const caskDir = caskWhen.replace('test -d ', '').replace(/"/g, '')
|
const caskDir = caskWhen.replace('test -d ', '').replace(/"/g, '')
|
||||||
await $`test -d "${caskDir}"`
|
if (fileExists(caskDir)) {
|
||||||
await $`mkdir -p "${process.env.HOME}/.local/bin/cask" && echo "open ${caskDir}" > "${process.env.HOME}/.local/bin/cask/${binLink.bin}"`
|
runCommand(`Adding shortcut bin link for ${binLink.package}`, `
|
||||||
|
mkdir -p "${process.env.HOME}/.local/bin/cask"
|
||||||
|
echo "open ${caskDir}" > "${process.env.HOME}/.local/bin/cask/${binLink.bin}"
|
||||||
|
`)
|
||||||
|
} else {
|
||||||
|
log('warn', 'Bin', `Expected Homebrew cask directory not found - ${pkg}`)
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log('warn', 'Bin', `Expected Homebrew cask directory not available - ${pkg}`)
|
log('warn', 'Bin', `Error creating bin shortcut link for ${pkg}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -39,8 +39,10 @@ export PATH_TASK="$(which task)"
|
||||||
### PATH
|
### PATH
|
||||||
export PATH="/opt/local/bin:$PATH"
|
export PATH="/opt/local/bin:$PATH"
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
export PATH="$HOME/.local/bin/cask:$PATH"
|
||||||
export PATH="$HOME/.local/bin/docker:$PATH"
|
export PATH="$HOME/.local/bin/docker:$PATH"
|
||||||
export PATH="$HOME/.local/bin/firejail:$PATH"
|
export PATH="$HOME/.local/bin/firejail:$PATH"
|
||||||
|
export PATH="$HOME/.local/bin/flatpak:$PATH"
|
||||||
export SSH_KEY_PATH="~/.ssh/id_rsa"
|
export SSH_KEY_PATH="~/.ssh/id_rsa"
|
||||||
|
|
||||||
### Homebrew
|
### Homebrew
|
||||||
|
@ -135,6 +137,13 @@ fi
|
||||||
### ffmpeg
|
### ffmpeg
|
||||||
export FFMPEG_DATADIR="$XDG_CONFIG_HOME/ffmpeg"
|
export FFMPEG_DATADIR="$XDG_CONFIG_HOME/ffmpeg"
|
||||||
|
|
||||||
|
### Flatpak
|
||||||
|
if command -v flatpak > /dev/null; then
|
||||||
|
FLATPAK_INSTALLATIONS="$(flatpak --installations)"
|
||||||
|
export PATH="$FLATPAK_INSTALLATIONS/exports/bin:$PATH"
|
||||||
|
export XDG_DATA_DIRS="$HOME/.local/share/flatpak/exports/share:$FLATPAK_INSTALLATIONS/exports/share:$XDG_DATA_DIRS"
|
||||||
|
fi
|
||||||
|
|
||||||
### fzf
|
### fzf
|
||||||
if command -v fd > /dev/null; then
|
if command -v fd > /dev/null; then
|
||||||
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'
|
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'
|
||||||
|
|
15
software.yml
15
software.yml
|
@ -7464,10 +7464,7 @@ softwarePlugins:
|
||||||
plugins:
|
plugins:
|
||||||
- Microsoft.CST.AttackSurfaceAnalyzer.CLI
|
- Microsoft.CST.AttackSurfaceAnalyzer.CLI
|
||||||
gh:
|
gh:
|
||||||
cmd: |
|
cmd: if [ -n "$GITHUB_TOKEN" ] && ! gh extension list | grep {PLUGIN}; then gh extension install {PLUGIN}; fi
|
||||||
if [ -n "$GITHUB_TOKEN" ] && ! gh extension list | grep {PLUGIN}; then
|
|
||||||
gh extension install {PLUGIN}
|
|
||||||
fi
|
|
||||||
plugins:
|
plugins:
|
||||||
- dlvhdr/gh-dash
|
- dlvhdr/gh-dash
|
||||||
- github/gh-net
|
- github/gh-net
|
||||||
|
@ -7494,10 +7491,7 @@ softwarePlugins:
|
||||||
- view-allocations
|
- view-allocations
|
||||||
- who-can
|
- who-can
|
||||||
vagrant:
|
vagrant:
|
||||||
cmd: |
|
cmd: if ! vagrant plugin list | grep {PLUGIN}; then vagrant plugin install {PLUGIN}; fi
|
||||||
if ! vagrant plugin list | grep {PLUGIN}; then
|
|
||||||
vagrant plugin install {PLUGIN}
|
|
||||||
fi
|
|
||||||
plugins:
|
plugins:
|
||||||
- vagrant-bindfs
|
- vagrant-bindfs
|
||||||
- vagrant-digitalocean
|
- vagrant-digitalocean
|
||||||
|
@ -7508,10 +7502,7 @@ softwarePlugins:
|
||||||
- vagrant-vbguest
|
- vagrant-vbguest
|
||||||
- vagrant-vmware-desktop
|
- vagrant-vmware-desktop
|
||||||
vscodium:
|
vscodium:
|
||||||
cmd: |
|
cmd: if test -n "$(find ~/.vscode/extensions -mindepth 1 -maxdepth 1 -type d -name "$(echo {PLUGIN} | tr "[:upper:]" "[:lower:]")*" -print -quit)"; then codium --install-extension "$(echo {PLUGIN} | tr "[:upper:]" "[:lower:]")"; fi
|
||||||
if test -n "$(find ~/.vscode/extensions -mindepth 1 -maxdepth 1 -type d -name "$(echo {PLUGIN} | tr "[:upper:]" "[:lower:]")*" -print -quit)"; then
|
|
||||||
code --install-extension "$(echo {PLUGIN} | tr "[:upper:]" "[:lower:]")"
|
|
||||||
fi
|
|
||||||
plugins:
|
plugins:
|
||||||
- Angular.ng-template
|
- Angular.ng-template
|
||||||
- attilabuti.vscode-mjml
|
- attilabuti.vscode-mjml
|
||||||
|
|
Loading…
Reference in a new issue