LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Improve nano and make it work with shortcuts used in windows

Posted 08-14-2012 at 04:15 PM by deskt0plinux
Updated 08-14-2012 at 04:19 PM by deskt0plinux (added note about keybinding working only for 2.x)

I use these lines in a file .nanorc in my home directory - eg:
/home/deskt0plinux/.nanorc
Code:
set autoindent
set boldtext
set brackets ""')>]}"
set const
set historylog
set matchbrackets "(<[{)>]}"
set mouse
set multibuffer
set regexp
set smarthome
set smooth
set suspend
set tabsize 4
set wordbounds
set softwrap

bind ^S writeout main
...
Member
Posted in Uncategorized
Views 634 Comments 0 deskt0plinux is offline
Old

mrxvt: how to configure clipboard copy and paste

Posted 09-27-2009 at 03:33 PM by catkin

Clipboard paste by Ctrl+Shift+V
Add this line to ~/.mrxvt
Code:
Mrxvt.macro.Ctrl+Shift+V: Paste CLIPBOARD
Clipboard copy by Ctrl+Shift+C
  1. Install xclip.
  2. Add this line to ~/.mrxvt
    Code:
    Mrxvt.macro.Ctrl+Shift+C: Exec !/usr/bin/xclip -o | /usr/bin/xclip -selection clipboard

Notes
  • Tested on Slackware 13.0 with mrxvt 0.5.4 and xclip 0.12.
  • Ctrl+Shift+V is configured by default to "Paste X selection into active tab" but there is no loss of functionality;
...
LQ 5k Club
Posted in Uncategorized
Views 5654 Comments 0 catkin is offline
Old

Copy directory using tar

Posted 03-03-2009 at 10:04 AM by ciotog
Updated 03-07-2009 at 08:40 AM by ciotog (remove stray echo, no need to test before mkdir when using -p)

Here's a simple script that uses tar to copy a directory. Naturally it would need to be called cpdir (or alter the usage method) and present in your path to use it.

Code:
#!/bin/sh

usage()
{
	cat << USAGE
	usage: cpdir <source-dir> <dest-dir>
USAGE
}

if [ -z "$1" -o -z "$2" -o ! -d "$1" -o -e "$2" -a ! -d "$2" ]
then
	usage
	exit 1
...
Member
Posted in scripts
Views 3608 Comments 0 ciotog is offline

  



All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration