coloring
This commit is contained in:
36
bin/hgmenu
36
bin/hgmenu
@@ -24,27 +24,31 @@ do case "$opt" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
PRC="cat"
|
||||||
|
hash highbeam 2> /dev/null && PRC="highbeam"
|
||||||
|
export HB_RULES='"^\[.\]" "$G" \
|
||||||
|
'
|
||||||
|
|
||||||
echo 'Mercurial:
|
echo 'Mercurial:
|
||||||
|
|
||||||
a: Add files to track*
|
[a] Add files to track*
|
||||||
c: Commit changes to local repository
|
[c] Commit changes to local repository
|
||||||
d: Difference of current and previous versions
|
[d] Difference of current and previous versions
|
||||||
l: Log
|
[l] Log
|
||||||
m: Merge conflicting change sets
|
[m] Merge conflicting change sets
|
||||||
p: Pull changes from remote repository
|
[p] Pull changes from remote repository
|
||||||
P: Push changes to remote repository
|
[P] Push changes to remote repository
|
||||||
r: Remove files*
|
[r] Remove files*
|
||||||
u: Update from local repository
|
[u] Update from local repository
|
||||||
s: Status
|
[s] Status
|
||||||
t: Start thg, graphical repository viewer
|
[t] Start thg, graphical repository viewer
|
||||||
v: View, internal graphical viewer
|
[v] View, internal graphical viewer
|
||||||
|
|
||||||
X: Add the required extensions to your ~/.hgrc
|
[X] Add the required extensions to your ~/.hgrc
|
||||||
q: Quit
|
[q] Quit
|
||||||
|
|
||||||
* Requires arguments
|
* Requires arguments
|
||||||
'
|
' | $PRC
|
||||||
|
|
||||||
echo Current arguments: "$@"
|
echo Current arguments: "$@"
|
||||||
read -p "Command: " -N 1 CMD
|
read -p "Command: " -N 1 CMD
|
||||||
@@ -63,7 +67,7 @@ case "$CMD" in
|
|||||||
echo Commiting files:
|
echo Commiting files:
|
||||||
find "$@" \( -type d -name .hg -prune \) -o -type f -print
|
find "$@" \( -type d -name .hg -prune \) -o -type f -print
|
||||||
}
|
}
|
||||||
read -p "Commit message: " MSG
|
read -e -p "Commit message: " MSG
|
||||||
hg commit -m "$MSG" "$@"
|
hg commit -m "$MSG" "$@"
|
||||||
;;
|
;;
|
||||||
d)
|
d)
|
||||||
|
|||||||
Reference in New Issue
Block a user