Эх сурвалжийг харах

make install location configurable

Pi 2 сар өмнө
parent
commit
6de9975c2f
3 өөрчлөгдсөн 4 нэмэгдсэн , 7 устгасан
  1. 1 2
      rc/.bashrc
  2. 2 3
      rc/.shrc
  3. 1 2
      rc/.zshrc

+ 1 - 2
rc/.bashrc

@@ -1,5 +1,4 @@
-#TODO: path must be install location
-. "$HOME"/git/recall/rc/.shrc
+. "$RECALL_PREFIX"/rc/.shrc
 
 insert_with_delay() {
   perl -le 'require "sys/ioctl.ph";

+ 2 - 3
rc/.shrc

@@ -1,6 +1,5 @@
-#TODO: path must be the install dir
-alias capture="$HOME/git/recall/capture.sh"
-alias recall="$HOME/git/recall/recall.sh"
+alias capture="$RECALL_PREFIX/capture.sh"
+alias recall="$RECALL_PREFIX/recall.sh"
 
 + (){
 	capture "$@"

+ 1 - 2
rc/.zshrc

@@ -1,5 +1,4 @@
-#TODO: path must be the install dir
-. "$HOME"/git/recall/rc/.shrc # all posix shells
+. "$RECALL_PREFIX"/rc/.shrc
 
 zle-line-init() if [[ $CONTEXT = start ]] LBUFFER=$zle_prefix$LBUFFER
 zle -N zle-line-init