Make pacup a script instead of an alias

This commit is contained in:
Anthony Rose 2021-05-24 19:03:35 +01:00
parent 3f8d527603
commit be9da43fb9
4 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,2 @@
#!/bin/sh
/usr/bin/pacman -Syu --needed

View file

@ -0,0 +1,20 @@
---
# Copyright 2021 Anthony Perkins
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Copy pacup script
ansible.builtin.copy:
src: pacup.sh
dest: "/usr/local/bin/pacup"
mode: '0755'

View file

@ -21,3 +21,4 @@
- include: solokeys.yml - include: solokeys.yml
- include: locale.yml - include: locale.yml
- include: printing.yml - include: printing.yml
- include: localbin.yml

View file

@ -98,7 +98,6 @@ alias ll="ls -l --color=auto"
alias ls="ls -F --color=auto" alias ls="ls -F --color=auto"
alias now="date +%Y%m%dT%H%M%S%z" alias now="date +%Y%m%dT%H%M%S%z"
alias nowu="date -u +%Y%m%dT%H%M%SZ" alias nowu="date -u +%Y%m%dT%H%M%SZ"
alias pacup="sudo pacman -Syu --needed"
alias streamenc="openssl aes-256-cbc -pbkdf2 -in - -out - -e" alias streamenc="openssl aes-256-cbc -pbkdf2 -in - -out - -e"
alias streamdec="openssl aes-256-cbc -pbkdf2 -in - -out - -d" alias streamdec="openssl aes-256-cbc -pbkdf2 -in - -out - -d"
alias ta="$HOME/opt/textadept/textadept" alias ta="$HOME/opt/textadept/textadept"