mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Add layered Bash editor environment snippets
This commit is contained in:
@@ -39,6 +39,13 @@ shopt -s cmdhist
|
||||
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
|
||||
export PATH
|
||||
|
||||
if [ -d "$HOME/.bashrc.d" ]; then
|
||||
for bashrc_file in "$HOME"/.bashrc.d/*.sh; do
|
||||
[ -r "$bashrc_file" ] || continue
|
||||
. "$bashrc_file"
|
||||
done
|
||||
fi
|
||||
|
||||
# =========================
|
||||
# Aliases (portable)
|
||||
# =========================
|
||||
@@ -420,3 +427,5 @@ elif [ "$PLATFORM" = "linux" ]; then
|
||||
alias df='df -h'
|
||||
alias du='du -h'
|
||||
fi
|
||||
|
||||
[ -r "$HOME/.bashrc.aliases" ] && . "$HOME/.bashrc.aliases"
|
||||
|
||||
2
dotfiles/common/.bashrc.aliases
Normal file
2
dotfiles/common/.bashrc.aliases
Normal file
@@ -0,0 +1,2 @@
|
||||
# Additional Bash aliases.
|
||||
# Keep this file as the extension point for shared aliases.
|
||||
2
dotfiles/desktop/.bashrc.d/20-editor-desktop.sh
Normal file
2
dotfiles/desktop/.bashrc.d/20-editor-desktop.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
export EDITOR=vim
|
||||
export VISUAL=emacs
|
||||
1
dotfiles/ubuntu/.bashrc.d/20-editor-ubuntu.sh
Normal file
1
dotfiles/ubuntu/.bashrc.d/20-editor-ubuntu.sh
Normal file
@@ -0,0 +1 @@
|
||||
export EDITOR=vim
|
||||
Reference in New Issue
Block a user