arsh 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/arsh +4 -2
- data/libs/version.rb +1 -1
- metadata +3 -3
data/bin/arsh
CHANGED
@@ -159,8 +159,10 @@ while true
|
|
159
159
|
#begin puts input.gsub(/\#\{*\}/,'\1') rescue puts "#{$!}" end
|
160
160
|
Readline::HISTORY.push("#{input}") # Add command to history
|
161
161
|
ArshCommands::INTHIST.push("[#{Time.now.strftime("%a %b %d %H:%M:%S")}] #{input}")
|
162
|
-
|
163
|
-
|
162
|
+
if ENV['HIST_COUNT']
|
163
|
+
until ArshCommands::INTHIST.count <= ENV['HIST_COUNT'].to_i
|
164
|
+
ArshCommands::INTHIST.shift if ArshCommands::INTHIST
|
165
|
+
end
|
164
166
|
end
|
165
167
|
|
166
168
|
# If command is builtin to shell...
|
data/libs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arsh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -15,7 +15,7 @@ date: 2012-01-20 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rb-readline
|
18
|
-
requirement: &
|
18
|
+
requirement: &7771400 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,7 +23,7 @@ dependencies:
|
|
23
23
|
version: '0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *7771400
|
27
27
|
description: Provides a shell that can run pure Ruby code as well as ordinary linux
|
28
28
|
commands.
|
29
29
|
email:
|