Compare commits
3 Commits
88f17ff438
...
5ab4606691
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ab4606691 | ||
|
|
f136aaa030 | ||
|
|
8340512f17 |
18
bash/.bashrc
18
bash/.bashrc
@@ -91,18 +91,27 @@ OMB_USE_SUDO=true
|
|||||||
# Add wisely, as too many completions slow down shell startup.
|
# Add wisely, as too many completions slow down shell startup.
|
||||||
completions=(
|
completions=(
|
||||||
asdf
|
asdf
|
||||||
|
brew
|
||||||
docker
|
docker
|
||||||
docker-compose
|
docker-compose
|
||||||
gh
|
gh
|
||||||
git
|
git
|
||||||
go
|
go
|
||||||
|
helm
|
||||||
|
kubectl
|
||||||
makefile
|
makefile
|
||||||
|
maven
|
||||||
|
minikube
|
||||||
npm
|
npm
|
||||||
|
nvm
|
||||||
|
oc
|
||||||
pip3
|
pip3
|
||||||
|
pip
|
||||||
|
sdkman
|
||||||
|
ssh
|
||||||
system
|
system
|
||||||
tmux
|
tmux
|
||||||
composer
|
vagrant
|
||||||
ssh
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Which aliases would you like to load? (aliases can be found in ~/.oh-my-bash/aliases/*)
|
# Which aliases would you like to load? (aliases can be found in ~/.oh-my-bash/aliases/*)
|
||||||
@@ -118,12 +127,8 @@ aliases=(
|
|||||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
# Add wisely, as too many plugins slow down shell startup.
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
plugins=(
|
plugins=(
|
||||||
bashmarks
|
|
||||||
bash-preexec
|
bash-preexec
|
||||||
cargo
|
|
||||||
colored-man-pages
|
colored-man-pages
|
||||||
git
|
|
||||||
zoxide
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Which plugins would you like to conditionally load? (plugins can be found in ~/.oh-my-bash/plugins/*)
|
# Which plugins would you like to conditionally load? (plugins can be found in ~/.oh-my-bash/plugins/*)
|
||||||
@@ -170,6 +175,7 @@ source "$OSH"/oh-my-bash.sh
|
|||||||
# export VISUAL="emacs"
|
# export VISUAL="emacs"
|
||||||
|
|
||||||
alias ls='ls --color=auto --group-directories-first'
|
alias ls='ls --color=auto --group-directories-first'
|
||||||
|
alias lsx='ls -AXF'
|
||||||
|
|
||||||
# Replace grep command tool
|
# Replace grep command tool
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if command -v brew > /dev/null 2>&1; then
|
if command -v /home/linuxbrew/.linuxbrew/bin/brew >/dev/null 2>&1; then
|
||||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
fi
|
fi
|
||||||
|
|||||||
0
bash/.bashrc.d/starship.sh
Normal file → Executable file
0
bash/.bashrc.d/starship.sh
Normal file → Executable file
5
bash/.bashrc.d/zoxide.sh
Executable file
5
bash/.bashrc.d/zoxide.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if command -v /home/linuxbrew/.linuxbrew/bin/zoxide >/dev/null 2>&1; then
|
||||||
|
eval "$(/home/linuxbrew/.linuxbrew/bin/zoxide init bash)"
|
||||||
|
fi
|
||||||
@@ -46,8 +46,8 @@ appendpath() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
appendpath "/home/linuxbrew/.linuxbrew/bin"
|
# appendpath "/home/linuxbrew/.linuxbrew/bin"
|
||||||
appendpath "$HOME/.local/bin"
|
appendpath "$HOME/.local/bin"
|
||||||
appendpath "$GOBIN"
|
appendpath "$GOBIN"
|
||||||
appendpath "$HOME/.cargo/bin"
|
# appendpath "$HOME/.cargo/bin"
|
||||||
unset appendpath
|
unset appendpath
|
||||||
|
|||||||
23
emacs/.emacs.d/early-init.el
Normal file
23
emacs/.emacs.d/early-init.el
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
;;=====================================================================================
|
||||||
|
;; Define loader functions
|
||||||
|
;;=====================================================================================
|
||||||
|
(defconst fscotto/modules-dir
|
||||||
|
(expand-file-name "lisp" user-emacs-directory))
|
||||||
|
|
||||||
|
(defun fscotto/load-module (module)
|
||||||
|
"Load a MODULE from symbol."
|
||||||
|
(let* ((module-name (symbol-name module))
|
||||||
|
(path (expand-file-name
|
||||||
|
(concat (replace-regexp-in-string "/" "/" module-name)
|
||||||
|
".el")
|
||||||
|
fscotto/modules-dir)))
|
||||||
|
(unless (file-exists-p path)
|
||||||
|
(error "Module not found: %s" path))
|
||||||
|
(load path nil 'nomessage)))
|
||||||
|
|
||||||
|
(defun fscotto/load-modules (&rest modules)
|
||||||
|
"Load MODULES."
|
||||||
|
(mapc #'fscotto/load-module modules))
|
||||||
|
|
||||||
|
(defvar fscotto/emacs-profile
|
||||||
|
(or (getenv "EMACS_PROFILE") "full"))
|
||||||
@@ -1,26 +1,6 @@
|
|||||||
(message "Welcome to Emacs")
|
(message "Welcome to Emacs")
|
||||||
(message "Loading user configuration...")
|
(message "Loading user configuration...")
|
||||||
|
(message "Emacs profile: %s" fscotto/emacs-profile)
|
||||||
;;=====================================================================================
|
|
||||||
;; Define loader functions
|
|
||||||
;;=====================================================================================
|
|
||||||
(defconst fscotto/modules-dir
|
|
||||||
(expand-file-name "lisp" user-emacs-directory))
|
|
||||||
|
|
||||||
(defun fscotto/load-module (module)
|
|
||||||
"Load a MODULE from symbol."
|
|
||||||
(let* ((module-name (symbol-name module))
|
|
||||||
(path (expand-file-name
|
|
||||||
(concat (replace-regexp-in-string "/" "/" module-name)
|
|
||||||
".el")
|
|
||||||
fscotto/modules-dir)))
|
|
||||||
(unless (file-exists-p path)
|
|
||||||
(error "Module not found: %s" path))
|
|
||||||
(load path nil 'nomessage)))
|
|
||||||
|
|
||||||
(defun fscotto/load-modules (&rest modules)
|
|
||||||
"Load MODULES."
|
|
||||||
(mapc #'fscotto/load-module modules))
|
|
||||||
|
|
||||||
;;=====================================================================================
|
;;=====================================================================================
|
||||||
;; Load modules
|
;; Load modules
|
||||||
@@ -52,6 +32,7 @@
|
|||||||
'lang/yaml
|
'lang/yaml
|
||||||
|
|
||||||
;; Misc
|
;; Misc
|
||||||
|
'misc/dashboard
|
||||||
'misc/custom-functions
|
'misc/custom-functions
|
||||||
'misc/doom-modeline
|
'misc/doom-modeline
|
||||||
'misc/which-key
|
'misc/which-key
|
||||||
|
|||||||
17
emacs/.emacs.d/lisp/misc/dashboard.el
Normal file
17
emacs/.emacs.d/lisp/misc/dashboard.el
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
;;; dashboard.el --- Startup dashboard -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
|
(use-package dashboard
|
||||||
|
:ensure t
|
||||||
|
:init
|
||||||
|
(setq dashboard-startup-banner 'logo
|
||||||
|
dashboard-center-content t
|
||||||
|
dashboard-set-heading-icons t
|
||||||
|
dashboard-set-file-icons t
|
||||||
|
dashboard-items '((recents . 8)
|
||||||
|
(projects . 5)))
|
||||||
|
:config
|
||||||
|
(dashboard-setup-startup-hook))
|
||||||
|
|
||||||
|
(provide 'dashboard)
|
||||||
|
|
||||||
|
;;; misc-dashboard.el ends here
|
||||||
@@ -35,6 +35,29 @@
|
|||||||
(list "~/.emacs.d/snippets") yas-indent-line 'fixed)
|
(list "~/.emacs.d/snippets") yas-indent-line 'fixed)
|
||||||
(yas-global-mode))
|
(yas-global-mode))
|
||||||
|
|
||||||
|
(use-package orderless
|
||||||
|
:ensure t
|
||||||
|
:custom
|
||||||
|
(completion-styles '(orderless basic))
|
||||||
|
(completion-category-overrides '((file (styles partial-completion))))
|
||||||
|
(completion-pcm-leading-wildcard t)
|
||||||
|
:config
|
||||||
|
(setq ivy-re-builders-alist '((t . orderless-ivy-re-builder)))
|
||||||
|
(add-to-list 'ivy-highlight-functions-alist '(orderless-ivy-re-builder . orderless-ivy-highlight)))
|
||||||
|
|
||||||
|
(defun just-one-face (fn &rest args)
|
||||||
|
(let ((orderless-match-faces [completions-common-part]))
|
||||||
|
(apply fn args)))
|
||||||
|
|
||||||
|
(advice-add 'company-capf--candidates :around #'just-one-face)
|
||||||
|
|
||||||
|
(use-package smartparens
|
||||||
|
:ensure smartparens ;; install the package
|
||||||
|
:hook (prog-mode text-mode markdown-mode) ;; add `smartparens-mode` to these hooks
|
||||||
|
:config
|
||||||
|
;; load default config
|
||||||
|
(require 'smartparens-config))
|
||||||
|
|
||||||
(provide 'completion)
|
(provide 'completion)
|
||||||
|
|
||||||
;;; completion.el ends here
|
;;; completion.el ends here
|
||||||
|
|||||||
10
emacs/.emacs.d/recentf
Normal file
10
emacs/.emacs.d/recentf
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
;;; Automatically generated by ‘recentf’ on Fri Jan 2 14:42:01 2026.
|
||||||
|
|
||||||
|
(setq recentf-list 'nil)
|
||||||
|
|
||||||
|
(setq recentf-filter-changer-current 'nil)
|
||||||
|
|
||||||
|
|
||||||
|
;; Local Variables:
|
||||||
|
;; coding: utf-8-emacs
|
||||||
|
;; End:
|
||||||
Reference in New Issue
Block a user