This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Src/hist.c b/Src/hist.c | |
index 4d522dd..78a98ed 100644 | |
--- a/Src/hist.c | |
+++ b/Src/hist.c | |
@@ -1122,6 +1122,9 @@ should_ignore_line(Eprog prog) | |
if (isset(HISTIGNORESPACE)) { | |
if (*chline == ' ' || aliasspaceflag) | |
return 1; | |
+ } else if (isset(HISTACCEPTSPACE)) { | |
+ if (*chline != ' ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# USAGE: git fixup [commit hash or something] | |
# Adds the staged changes to the specified commit. | |
if [ -n "$1" ]; then | |
git stash --keep-index | |
git commit --fixup="$1" && | |
GIT_EDITOR=vim git rebase --autosquash --interactive "$1~1" | |
git stash pop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
=head1 NAME | |
mvln - move a file and leave a symlink to its new location in its place | |
=head1 SYNOPSIS | |
B<mvln> I<source> I<destination> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFLAGS=-O2 -Wall -Wextra | |
.PHONY: all | |
all: accessmonitor.so | |
accessmonitor.so: accessmonitor.c | |
$(CC) $(CFLAGS) -fPIC -shared -ldl $< -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
######################################################################### | |
# Copyright (C) 2012 Wojciech Siewierski # | |
# # | |
# This program is free software: you can redistribute it and/or modify # | |
# it under the terms of the GNU General Public License as published by # | |
# the Free Software Foundation, either version 3 of the License, or # | |
# (at your option) any later version. # | |
# # | |
# This program is distributed in the hope that it will be useful, # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
######################################################################### | |
# Copyright (C) 2012 Wojciech Siewierski # | |
# # | |
# This program is free software: you can redistribute it and/or modify # | |
# it under the terms of the GNU General Public License as published by # | |
# the Free Software Foundation, either version 3 of the License, or # | |
# (at your option) any later version. # | |
# # | |
# This program is distributed in the hope that it will be useful, # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
######################################################################### | |
# Copyright (C) 2014 Wojciech Siewierski # | |
# # | |
# This program is free software: you can redistribute it and/or modify # | |
# it under the terms of the GNU General Public License as published by # | |
# the Free Software Foundation, either version 3 of the License, or # | |
# (at your option) any later version. # | |
# # | |
# This program is distributed in the hope that it will be useful, # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
zebra() | |
{ | |
local r=0 | |
while IFS='' read -r line; do | |
r=$((!r)) | |
(( r )) && print -n '\e[1;34m' | |
print $line | |
(( r )) && print -n '\e[0m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"add imports on the first line" in withAnalyzer { (dir, analyzerRef) => | |
val file = srcFile(dir, "tmp-contents", contents( | |
"import scala.collection.mutable.Set" | |
), write = true, encoding = encoding) | |
val analyzer = analyzerRef.underlyingActor | |
val procId = 1 | |
analyzer.handleRefactorPrepareRequest( | |
new PrepareRefactorReq( |
OlderNewer