From f5274dee16d0405c325504fb403ee840286161dc Mon Sep 17 00:00:00 2001 From: gibbyb Date: Thu, 21 Nov 2024 21:59:48 -0600 Subject: [PATCH] Added some aliases --- configs/ollama/ollama.service | 14 ++++++++++++++ defaults/bash/aliases | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 configs/ollama/ollama.service diff --git a/configs/ollama/ollama.service b/configs/ollama/ollama.service new file mode 100644 index 0000000..81b6860 --- /dev/null +++ b/configs/ollama/ollama.service @@ -0,0 +1,14 @@ +[Unit] +Description=Ollama for Gib AI Website +After=network-online.target + +[Service] +ExecStart=/bin/bash -lc 'OLLAMA_HOST=0.0.0.0:4242 /usr/local/bin/ollama serve' +User=ollama +Group=ollama +Restart=always +RestartSec=3 +Environment="PATH=/home/gib/.bun/bin:/home/gib/.bun/bin:/home/gib/.bun/bin:/home/gib/.bun/bin:/home/gib/.local/bin:/home/gib/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/gib/.composer/vendor/bin:/home/gib/.dotnet/tools:/home/gib/.local/share/JetBrains/Toolbox/scripts:/home/gib/.local/share/JetBrains/Toolbox/scripts:/home/gib/.local/share/JetBrains/Toolbox/scripts" + +[Install] +WantedBy=default.target diff --git a/defaults/bash/aliases b/defaults/bash/aliases index ce0f6a2..c3d7a51 100644 --- a/defaults/bash/aliases +++ b/defaults/bash/aliases @@ -9,7 +9,6 @@ alias cdcode="cd ~/Documents/Code" alias cdsun="cd ~/.local/share/sunhat" alias rnr="ranger" alias startsunshine="systemctl --user restart sunshine.service" -alias n.="nvim ." alias sourcerc="source ~/.bashrc" alias john="~/.local/share/sunhat/packages/JohnTheRipper/run/john" @@ -27,7 +26,10 @@ alias ....='cd ../../..' # Tools alias n='nvim' +alias n.="nvim ." +alias nlc="nvim lc" alias g='git' +alias watchsmi="watch -n 3 nvidia-smi" # Git alias gcm='git commit -m'