22 lines
223 B
Bash
22 lines
223 B
Bash
|
|
#!/usr/bin/zsh
|
||
|
|
source ~/.config/shell/functions.zsh
|
||
|
|
|
||
|
|
new() {
|
||
|
|
|
||
|
|
set-env
|
||
|
|
nvim
|
||
|
|
}
|
||
|
|
|
||
|
|
chat() {
|
||
|
|
|
||
|
|
set-env
|
||
|
|
nvim +CodeCompanionChat -c only
|
||
|
|
}
|
||
|
|
|
||
|
|
case "$1" in
|
||
|
|
new) new $2 ;;
|
||
|
|
chat) chat ;;
|
||
|
|
*) echo "Please enter an action" ;;
|
||
|
|
|
||
|
|
esac
|