Server root config
This commit is contained in:
@@ -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"
|
||||
|
||||
3
dot_config/fish/functions/enable-site.fish
Normal file
3
dot_config/fish/functions/enable-site.fish
Normal file
@@ -0,0 +1,3 @@
|
||||
function enable-site
|
||||
ln -s (pwd)/$argv[1] ../sites-enabled
|
||||
end
|
||||
4
dot_config/fish/functions/systemctl-restart.fish
Normal file
4
dot_config/fish/functions/systemctl-restart.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
function systemctl-restart
|
||||
sudo systemctl restart $argv[1]
|
||||
and sudo systemctl status $argv[1]
|
||||
end
|
||||
Reference in New Issue
Block a user