Update Arch init script & packages

This commit is contained in:
Observer of Time 2019-11-11 19:44:44 +02:00
parent 7126870a2e
commit 6af534596f
Signed by: chronobserver
GPG Key ID: 8A2DEA1DBAEBCA9E
6 changed files with 40 additions and 25 deletions

View File

@ -29,6 +29,10 @@ PROMPT_DIRTRIM=2
# Don't complete files with the following extensions # Don't complete files with the following extensions
FIGNORE='~:.o:.swp:.pyc' FIGNORE='~:.o:.swp:.pyc'
# Show hints in ./configure --option=
# shellcheck disable=SC2034
COMP_CONFIGURE_HINTS=1
# Alias definitions # Alias definitions
test -f ~/.bash_aliases && . "$_" test -f ~/.bash_aliases && . "$_"

View File

@ -39,7 +39,7 @@ user-agent="Mozilla/5.0 (X11; Linux x86_64) mpv/0.30.0"
# OSD {{{ # OSD {{{
# Set the duration of the OSD messages in ms. # Set the duration of the OSD messages in ms.
osd-duration=2000 osd-duration=5000
# Specify font to use for OSD. # Specify font to use for OSD.
osd-font="Fantasque Sans Mono" osd-font="Fantasque Sans Mono"

View File

@ -88,23 +88,39 @@ unset -f ghdl
# }}} # }}}
# Install bash completions {{{ # Install bash completions {{{
DIRECTORY=/etc/bash_completion.d DIRECTORY="$XDG_DATA_HOME/bash-completion/completions"
declare -A ALIASES=(
[adb]=android
[emulator]=android
[fastboot]=android
[clang++]=clang
[ffprobe]=ffmpeg
[goapp]=go
[godoc]=go
[gradlew]=gradle
)
mkdir -p "$DIRECTORY"
raw() (printf 'https://raw.githubusercontent.com/%s' "$1/$2/master/$3") raw() (printf 'https://raw.githubusercontent.com/%s' "$1/$2/master/$3")
sudo wget -P "$DIRECTORY" \ aria2c -d "$DIRECTORY" -i - <<EOF
"$(raw mbrubeck android-completion android)" \ $(raw mbrubeck android-completion android)
"$(raw clerk67 ffmpeg-completion ffmpeg)" \ $(raw clerk67 ffmpeg-completion ffmpeg)
"$(raw eriwn gradle-completion-bash gradle-completion.bash)" \ $(raw gradle gradle-completion gradle-completion.bash)
"$(raw omakoto go-completion.bash go-completion.bash)" out=gradle
sudo wget -P "$DIRECTORY" -i - <<< "$(\ $(raw omakoto go-completion.bash go-completion.bash)
for name in 7z chmod chown jq openssl usermod; do \ out=go
printf '%s\n' "$(raw scop bash-completion "completions/$name")"; \ $(raw llvm-mirror clang utils/bash-autocomplete.sh)
done)" out=clang
grunt --completion=bash | sudo tee \ EOF
"$DIRECTORY/grunt-completion.bash" >/dev/null printf 'complete -o default -F _ffmpeg ffprobe\n' >> "$DIRECTORY/ffmpeg"
gulp --completion=bash | sudo tee \ printf 'complete -o default -F _clang clang++\n' >> "$DIRECTORY/clang"
"$DIRECTORY/gulp-completion.bash" >/dev/null for key in "${!ALIASES[@]}"; do
pip completion -b | sudo tee "$DIRECTORY/pip-completion.bash" >/dev/null ln -fvs "$DIRECTORY/${ALIASES[$key]}" "$DIRECTORY/$key"
unset -f DIRECTORY raw done
grunt --completion=bash > "$DIRECTORY/grunt"
gulp --completion=bash > "$DIRECTORY/gulp"
pandoc --bash-completion > "$DIRECTORY/pandoc"
poetry completions bash > "$DIRECTORY/poetry"
unset -f DIRECTORY ALIASES raw
# }}} # }}}
# Install from github reporisotories {{{ # Install from github reporisotories {{{

View File

@ -12,12 +12,12 @@ google-java-format
intellij-idea-ultimate-edition intellij-idea-ultimate-edition
intellij-idea-ultimate-edition-jre intellij-idea-ultimate-edition-jre
iridium-deb iridium-deb
kde-servicemenus-rootactions
kde-thumbnailer-apk kde-thumbnailer-apk
kde-thumbnailer-epub
korla-icon-theme korla-icon-theme
luacheck luacheck
mcomix-gtk3-git
mkv-extractor-qt mkv-extractor-qt
opustags
pandoc-bin pandoc-bin
phpstorm phpstorm
pycharm-professional pycharm-professional

View File

@ -39,12 +39,10 @@ go
goldendict goldendict
gradle gradle
htop htop
httpie
hub hub
iftop iftop
imagemagick imagemagick
inkscape inkscape
jdk-openjdk
jdk8-openjdk jdk8-openjdk
jq jq
kcolorchooser kcolorchooser
@ -61,7 +59,6 @@ libreoffice-fresh
lldb lldb
llvm llvm
maven maven
mcomix
mesa mesa
mkvtoolnix-cli mkvtoolnix-cli
mkvtoolnix-gui mkvtoolnix-gui
@ -77,7 +74,6 @@ odt2txt
okteta okteta
okular okular
optipng optipng
oracle-instantclient-sqlplus
otf-fantasque-sans-mono otf-fantasque-sans-mono
otf-fira-code otf-fira-code
p7zip p7zip
@ -117,12 +113,10 @@ vifm
vim vim
vint vint
virt-manager virt-manager
vulkan-intel
wget wget
whois whois
wine wine
words words
xf86-video-intel
yarn yarn
youtube-dl youtube-dl
zathura zathura

View File

@ -9,6 +9,7 @@ init-author-name ObserverOfTime
init-author-url "https://observeroftime.github.io" init-author-url "https://observeroftime.github.io"
init-license MIT init-license MIT
init-version "0.1.0" init-version "0.1.0"
prefix "~/.local"
user-agent "yarn/1.19.1 node/v12.13.0 linux x64" user-agent "yarn/1.19.1 node/v12.13.0 linux x64"
username ObserverOfTime username ObserverOfTime
version-git-sign true version-git-sign true