Save Time with minicom macros

For those using  minicom , there's no need to repeatedly type commands again-and-again.

For those not using  minicom , see my next mail.

minicom  provides macros support (i.e., hotkeys), which helps preventing form constantly typing cumbersome commands.

Simply 1) put an file named  .macros  under you home directory, then 2) defines your macros.

For example, I have these defines in my  .macros
# F1 empty
pu pmac1            ^M

# F2 remove CAK & iPanel configs

pu pmac2            rm /cadata/*.ca /configs/*.dat^M

# F3 quick way to launch dtv with duma

pu pmac3            LD_PRELOAD=libduma.so.0.0.0 DUMA_PROTECT_BELOW=1 DUMA_PROTECT_FREE=1 DUMA_ALLOW_MALLOC_0=1 G_DEBUG=gc-friendly G_SLICE=always-malloc LANG=zh_TW.UTF8 /usr/bin/dtv^M

pu pmac4            killall dtv^M

pu pmac5            portmap && mount -t nfs 192.192.192.76:/home/sam/workspace/DVB2102C/target /tmp^M

pu pmac6            LANG=zh_TW.UTF8 gdb /usr/bin/dtv^M

pu pmac7            cd /mnt/usb/sda1^M

# F8 unlimit coredump

pu pmac8            ulimit -Ss unlimited && ulimit -Sc unlimited^M

pu pmac9            . /usr/local/stapi/modules/load_env.sh^M



But I found there's a bug in  minicom  2.4, which reads  .macros  only at max 11 lines (including comments). I fixed it, the patch and executable are both attached.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值