summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2024-11-28 16:44:26 -0300
committerLeonardo Santiago <[email protected]>2024-11-28 16:44:26 -0300
commitbbdf072b349685d808f9c261ce702f100e939706 (patch)
treef2a96f99705814fdbdb58cca008052d08b5c4f25 /modules
parente29038c6c00a3141634dece157eb3234d5bdab9d (diff)
use vterm instead of eat.
Diffstat (limited to 'modules')
-rw-r--r--modules/basic.nix16
-rw-r--r--modules/emacs/README.org4
2 files changed, 17 insertions, 3 deletions
diff --git a/modules/basic.nix b/modules/basic.nix
index 26d2e15..71404a8 100644
--- a/modules/basic.nix
+++ b/modules/basic.nix
@@ -31,7 +31,21 @@
promptInit =
''
PS1="\[\033[1;95m\][\h]\[\033[0m\] \[\033[0;32m\]\w\[\033[0m\] :: "
- [ -n "$EAT_SHELL_INTEGRATION_DIR" ] && source "$EAT_SHELL_INTEGRATION_DIR/bash"
+ vterm_printf() {
+ if [ -n "$TMUX" ] && ([ "$${TERM%%-*}" = "tmux" ] || [ "$${TERM%%-*}" = "screen" ]); then
+ # Tell tmux to pass the escape sequences through
+ printf "\ePtmux;\e\e]%s\007\e\\" "$1"
+ elif [ "$${TERM%%-*}" = "screen" ]; then
+ # GNU screen (screen, screen-256color, screen-256color-bce)
+ printf "\eP\e]%s\007\e\\" "$1"
+ else
+ printf "\e]%s\e\\" "$1"
+ fi
+ }
+ vterm_prompt_end(){
+ vterm_printf "51;A$(whoami)@$(hostname):$(pwd)"
+ }
+ PS1=$PS1'\[$(vterm_prompt_end)\]'
'';
};
programs.direnv = {
diff --git a/modules/emacs/README.org b/modules/emacs/README.org
index 20528cf..610bdc9 100644
--- a/modules/emacs/README.org
+++ b/modules/emacs/README.org
@@ -21,7 +21,7 @@ You can also use it as a ~nixosModule~, in order to add additional packages like
(scroll-bar-mode -1)
(global-display-line-numbers-mode 1)
-
+(setq default-frame-alist '((fullscreen . maximized)))
(setq use-short-answers t)
(setq inhibit-startup-message t)
@@ -223,7 +223,7 @@ Completion popup system
#+end_src
** Vterm
#+begin_src emacs-lisp :tangle yes
-(use-package eat
+(use-package vterm
:ensure t)
#+end_src
** Compilation