-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
executable file
·37 lines (26 loc) · 1.19 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
1) First, if not already installed, install ondir following the instructions at http://swapoff.org/ondir.html
Be sure to have have an .ondirrc installed in your home directory and add the functions for the application to you .bashrc
2) Additionally, place the following in your .bashrc:
#Note the second part combines all of your history and saves it.
export PM_DIR=~/.pm/
pm(){
if [ $1 = "p" ]; then
cd "$(grep "^$2" ~/.pm/projects | cut -f2)"
cd "$last_dir"
else
bash ~/pm.sh "$@"
if [ $1 = "-c" ];then
source .pm
fi
fi
}
export HISTCONTROL=ignoredups:erasedups # no duplicate entries
export HISTSIZE=100000 # big big history
export HISTFILESIZE=100000 # big big history
shopt -s histappend # append to history, don't overwrite it
# Save and reload the history after each command finishes
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
3) Source your bashrc or close and re-open a terminal.
4) Ensure pm.sh is in your home directory
5) Run "pm -i"
6) Use the help function pm -h for usage