summaryrefslogtreecommitdiffstats
path: root/functions
Side-by-side diff
Diffstat (limited to 'functions') (more/less context) (ignore whitespace changes)
-rw-r--r--functions16
1 files changed, 10 insertions, 6 deletions
diff --git a/functions b/functions
index 7c9bf1a..657214e 100644
--- a/functions
+++ b/functions
@@ -121,9 +121,10 @@ done
#set +x
}
-function gdb(){
-/usr/bin/gdb --quiet
-}
+#function {gdb,cgdb} {
+#pid=$(pidof -s $1)
+#/usr/bin/$0 -- --quiet --pid=$pid
+#}
function genscope(){
/usr/bin/cscope -b -R -q
@@ -280,7 +281,7 @@ webman(){
man(){
if [[ ! -z $2 || -z $TMUX ]];then /usr/bin/man "[email protected]" ; return; fi
/usr/bin/man -w [email protected] &>/dev/null || return $?
- tmux split-window -p 83 "LC_ALL=C LANG=C exec /usr/bin/man [email protected]"
+ tmux split-window -p 90 "LC_ALL=C LANG=C exec /usr/bin/man [email protected]"
}
@@ -525,7 +526,7 @@ alias lsnew='noglob lsnew'
#function {news,mutt,ncm,vim,weechat,weechat-curses,newsbeuter,ncmpcpp,atop,rtorrent,torrent} {
function {news,mutt,ncm,weechat,weechat-curses,newsbeuter,ncmpcpp,atop,rtorrent,torrent} {
: ${(AA)muxaliases:=${(z)MUXAL}}
- if [[ -z $TMUX || $1 == -f ]];then
+ if [[ -z $TMUX || $1 == -f || -n $1 ]];then
[[ $1 == -f ]] && shift
if test $muxaliases[$0];then
=$muxaliases[$0] "[email protected]"
@@ -552,7 +553,7 @@ function {news,mutt,ncm,weechat,weechat-curses,newsbeuter,ncmpcpp,atop,rtorrent,
winum=$(~/bin/tux tnum $app)
if [[ -z $winum || $? != 0 ]];then
- print "$0 = Dead | Something ==> recreated in its session"
+ #print "$0 = Dead | Something ==> recreated in its session"
return 5
fi
@@ -576,6 +577,9 @@ function {reboot,sdown} {
eval "$=map[$command]"
fi
}
+startx(){
+ /usr/bin/startx &>|~/logs/X.log
+}
viewjson(){
python -mjson.tool < $1