Editor setup changes
This commit is contained in:
@@ -17,9 +17,17 @@ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;92m\]$(hostnamectl hostname)\[\
|
||||
#
|
||||
# Variables
|
||||
#
|
||||
#export EDITOR=vim
|
||||
export EDITOR=nvim
|
||||
export PATH=~/bin:~/.local/bin:$PATH
|
||||
export IGNOREEOF=50 # Ignore first 50 Ctrl-D on shell
|
||||
|
||||
#
|
||||
# Editor setup
|
||||
#
|
||||
function n () {
|
||||
/opt/neovim/nvim $* || nvim $*
|
||||
}
|
||||
|
||||
export EDITOR=n
|
||||
|
||||
#
|
||||
# Aliases
|
||||
@@ -28,18 +36,11 @@ alias ls='ls -altrh --color'
|
||||
alias q=exit
|
||||
alias a=clear
|
||||
alias h=history
|
||||
alias e=$EDITOR
|
||||
alias n=$EDITOR
|
||||
alias gn='neovide --fork'
|
||||
|
||||
#
|
||||
# Functions
|
||||
#
|
||||
function myvim () {
|
||||
gvim $1 >& /dev/null &
|
||||
disown %1
|
||||
}
|
||||
|
||||
function pyedit () {
|
||||
gedit $1 >& /dev/null &
|
||||
disown %1
|
||||
|
Reference in New Issue
Block a user