Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pad92 committed Nov 24, 2021
1 parent 27b6c8d commit 0955345
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .zshaliases
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ function nw_ss {

# Docker
## Ansible
if [ command -v docker &>/dev/null ]; then
if [ $(command -v docker) ]; then
alias ansible-sh='docker run -it --rm -v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent -v ${PWD}:/ansible -e SSH_AUTH_SOCK=/ssh-agent pad92/ansible-alpine:2.10.7 sh'
alias ansible-playbook='docker run -it --rm -v $(readlink -f $SSH_AUTH_SOCK):/ssh-agent -v ${PWD}:/ansible -e SSH_AUTH_SOCK=/ssh-agent pad92/ansible-alpine:2.10.7 ansible-playbook'
fi


# Arch
## remove orphans
if [ command -v pacman &>/dev/null ] && [ command -v yay &>/dev/null ]; then
if [ $(command -v pacman) ] && [ $(command -v yay) ]; then
function clean_arch {
ORPHAN=$(pacman -Qtdq)

Expand All @@ -37,15 +37,15 @@ if [ command -v pacman &>/dev/null ] && [ command -v yay &>/dev/null ]; then
fi

## get fastest mirrors
if [ command -v reflector &>/dev/null ]; then
if [ $(command -v reflector) ]; then
alias mirror="sudo reflector -c FR -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"
alias mirrord="sudo reflector --latest 50 --number 20 --sort delay --save /etc/pacman.d/mirrorlist"
alias mirrors="sudo reflector --latest 50 --number 20 --sort score --save /etc/pacman.d/mirrorlist"
alias mirrora="sudo reflector --latest 50 --number 20 --sort age --save /etc/pacman.d/mirrorlist"
fi

# youtube-dl
if [ command -v youtube-dl &>/dev/null ]; then
if [ $(command -v youtube-dl) ]; then
alias yta-aac="youtube-dl --extract-audio --audio-format aac "
alias yta-best="youtube-dl --extract-audio --audio-format best "
alias yta-flac="youtube-dl --extract-audio --audio-format flac "
Expand Down
3 changes: 3 additions & 0 deletions archlinux/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ systemctl enable NetworkManager
systemctl enable systemd-timesyncd.service
systemctl enable sshd
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
vim /etc/pacman.conf
# Color
# ILoveCandy
Expand Down Expand Up @@ -162,6 +164,7 @@ EOF
yay -S $(cat ~/.dotfiles/archlinux/pkglist.txt)
sudo systemctl enable gdm
systemctl disable sshd
```

# Optional
Expand Down

0 comments on commit 0955345

Please sign in to comment.