<commit_before>#+TITLE: Eshell Configuration
#+OPTIONS: toc:nil num:nil ^:nil

#+BEGIN_SRC emacs-lisp
  (setq eshell-save-history-on-exit t
        eshell-cmpl-dir-ignore "\\`\\(\\.\\.?\\|CVS\\|\\.svn\\|\\.git\\)/\\'")

  (eval-after-load 'esh-opt
    '(progn
       (require 'em-cmpl)
       (require 'em-prompt)
       (require 'em-term)
       (setenv "PAGER" "cat")
       (add-to-list 'eshell-visual-commands "ssh")
       (add-to-list 'eshell-visual-commands "tail")))
#+END_SRC

#+BEGIN_SRC emacs-lisp
  (defun eshell/cds ()
    "Change directory to the project's root."
    (eshell/cd (projectile-project-root)))
#+END_SRC

#+BEGIN_SRC emacs-lisp
  (defun eshell/clear ()
    "Clear the eshell buffer."
    (interactive)
    (let ((inhibit-read-only t))
      (erase-buffer)
      (eshell-send-input)))
  (add-hook 'eshell-mode-hook
        '(lambda()
            (local-set-key (kbd "C-l") 'eshell/clear)))
#+END_SRC<commit_msg>Disable company-mode in eshell.<commit_after>#+TITLE: Eshell Configuration
#+OPTIONS: toc:nil num:nil ^:nil

#+BEGIN_SRC emacs-lisp
  (setq eshell-save-history-on-exit t
        eshell-cmpl-dir-ignore "\\`\\(\\.\\.?\\|CVS\\|\\.svn\\|\\.git\\)/\\'")

  (eval-after-load 'esh-opt
    '(progn
       (require 'em-cmpl)
       (require 'em-prompt)
       (require 'em-term)
       (setenv "PAGER" "cat")
       (add-to-list 'eshell-visual-commands "ssh")
       (add-to-list 'eshell-visual-commands "tail")))
#+END_SRC

#+BEGIN_SRC emacs-lisp
  (defun eshell/cds ()
    "Change directory to the project's root."
    (eshell/cd (projectile-project-root)))
#+END_SRC

#+BEGIN_SRC emacs-lisp
  (defun eshell/clear ()
    "Clear the eshell buffer."
    (interactive)
    (let ((inhibit-read-only t))
      (erase-buffer)
      (eshell-send-input)))

  (add-hook 'eshell-mode-hook
            '(lambda()
               (company-mode -1)
               (local-set-key (kbd "C-l") 'eshell/clear)))
#+END_SRC
{'fraction_non_alphanumeric': 0.19141231246766685, 'fraction_numerical': 0.0005173305742369374, 'mean_word_length': 2.509981851179673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4919925', 'n_tokens_mistral': 783, 'n_tokens_neox': 751, 'n_words': 140}