Server root config

This commit is contained in:
2019-08-20 15:06:24 +00:00
parent 5a2794b643
commit 92aa2bd6f5
8 changed files with 37 additions and 12 deletions

View File

@@ -52,13 +52,14 @@ mkpk "makepkg -sri"
ex "chmod +x"
# systemctl [[[ #
ctl "sudo systemctl"
ctle "sudo systemctl enable"
ctld "sudo systemctl disable"
ctla "sudo systemctl start"
ctls "sudo systemctl stop"
ctlt "sudo systemctl status"
ctlr "sudo systemctl restart"
ct "sudo systemctl"
cte "sudo systemctl enable"
ctd "sudo systemctl daemon-reload"
ctdi "sudo systemctl disable"
cta "sudo systemctl start"
cts "sudo systemctl stop"
ctt "sudo systemctl status"
# ctr "sudo systemctl restart"
ctltd "sudo systemctl status dhcpcd"
ctlas "sudo systemctl start sshd"
@@ -210,9 +211,11 @@ xpk "pkg list-installed | awk -F/ '{print \$1}' > ~/{{ .chezmoi.os }}-config/txt
# apt [[[ #
# apti "sudo apt install"
# aptr "sudo apt remove"
# aptu "sudo apt upgrade"
{{ if and (eq .chezmoi.username "root") (eq .linux_os "debian") }}
ap "apt install"
apr "apt remove"
apu "apt upgrade"
{{ end }}
# ]]] apt #
@@ -240,6 +243,10 @@ rdh "sudo killall dhcpcd && sudo dhcpcd"
wgt "wget"
{{ if and (eq .chezmoi.username "root") (eq .linux_os "debian") }}
nt "nginx -t"
{{ end }}
# ]]] internet #
id "identify"

View File

@@ -19,6 +19,11 @@ P ~/Pictures
std ~/st
tm /tmp
{{ if and (eq .chezmoi.username "root") (eq .linux_os "debian") }}
ng /etc/nginx/sites-available
sv /etc/systemd/system
{{ end }}
# ]]] sys #
# cdn [[[ #

View File

@@ -22,6 +22,10 @@ xi ~/linux-config/dot_xinitrc
y ~/.zshrc
z ~/linux-config/aliases/zsh_aliases
{{ if and (eq .chezmoi.username "root") (eq .linux_os "debian") }}
ng /etc/nginx/nginx.conf
{{ end }}
# ]]] sys #
# cdn [[[ #