From dac3a3ca12764635f917e398dcc04a9d9893ef77 Mon Sep 17 00:00:00 2001 From: James Blair Date: Thu, 4 May 2023 20:40:12 +1200 Subject: [PATCH] Updated bashrc for doom migration. --- .bashrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 9f5de33..01506b7 100644 --- a/.bashrc +++ b/.bashrc @@ -114,20 +114,24 @@ export FZF_DEFAULT_COMMAND="rg --files --follow --no-ignore-vcs --hidden -g '!{* source /usr/share/doc/fzf/examples/key-bindings.bash # Configure emacs location and aliases -export EMACSLOADPATH=~/Downloads/humacs: +export PATH=$PATH:/home/james/.config/emacs/bin/ +alias emacs="doom run" +alias nano="doom run -nw" + function e { # If the file exists just open it if test -f "$1"; then - emacsclient -a "" "$1" + doom run -nw "$1" # Otherwise we should search for it - else emacsclient -a "" $(fzf --height 40% --reverse -i --query "$1") + else doom run -nw $(fzf --height 40% --reverse -i --query "$1") fi } # Configure go location export PATH=$PATH:/usr/local/go/bin +export PATH=$PATH:/home/$USER/go/bin/ # Setup prompt function color_my_prompt {