Commit ab51976e authored by Cédric Marie's avatar Cédric Marie

Set emacs as the default editor

Export EDITOR variable (emacs) to define the default editor.

Add an alias (e) for emacs in the terminal (emacs -nw, i.e.
--no-window-system).
Signed-off-by: Cédric Marie's avatarCédric Marie <cedric@hjuvi.fr.eu.org>
parent a980e930
......@@ -4,7 +4,7 @@
# alias - Aliases for bash
# This file is part of Painted Shell - Shell configuration and scripts.
#
# Written in 2013-2017 by Cédric Marie
# Written in 2013-2020 by Cédric Marie
#
# To the extent possible under law, the author(s) have dedicated all copyright
# and related and neighboring rights to this software to the public domain
......@@ -25,6 +25,7 @@ fi
alias ll="ls -lN"
alias lll="ls -alN"
alias llf="ls -lN --full-time"
alias e="emacs -nw"
# Aliases for new commands
alias ..='cd ..'
......
......@@ -20,6 +20,7 @@ PAINTED_SHELL_PATH=$(dirname $(dirname $BASH_SOURCE))
if [ "$TERM" = "xterm" ]; then
export TERM=xterm-256color
fi
export EDITOR=emacs
# Define aliases
source $PAINTED_SHELL_PATH/bash/alias
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment