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

@@ -79,6 +79,7 @@ end
abbr ab "abbr"
abbr abe "abbr -e"
abbr hm "history merge"
# abbr rfc "chezmoi apply && source ~/.config/fish/config.fish"
abbr f. "cd .."
abbr f.. "cd ../.."
@@ -99,7 +100,9 @@ abbr cpc "copy cat"
abbr cpe "copy echo"
abbr cpp "copy echo (pwd)"
abbr cff "create-fish-function"
abbr ctr "systemctl-restart"
abbr def "define"
abbr ens "enable-site"
abbr ev "evince-silent"
# abbr fbg "find-bg"
abbr fvft "find-vim-filetype"
@@ -144,4 +147,4 @@ abbr jct "java-compile-test"
# ]]] fxn abbr's #
abbr hm "cd $mfs_dir && hugo serve -D --disableFastRender"
abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender"

View File

@@ -0,0 +1,3 @@
function enable-site
ln -s (pwd)/$argv[1] ../sites-enabled
end

View File

@@ -0,0 +1,4 @@
function systemctl-restart
sudo systemctl restart $argv[1]
and sudo systemctl status $argv[1]
end