ruby-shell 3.6.7 → 3.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rsh +20 -6
  3. metadata +3 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27ea51d3eee2117b64d91a43ba865d091e2171ea17c39ec6ae4fd17e44fe113a
4
- data.tar.gz: 2309813190a81f16b7e6eddd4a2b8b96e2aa3a21481c9c9f455a68ffb5bcf4af
3
+ metadata.gz: a1db1bd4df1311c6cdb38713235f40812df4ddc394e55b69154a9d7e04ee4510
4
+ data.tar.gz: f8c8ad429df098fc6302147ed076d5d1b54dd7a6e444f84bc8da5e0d3533a9c3
5
5
  SHA512:
6
- metadata.gz: 5b438f11541a5f4d45b87fd784c1986eeb8b623e5c5114c6291a02676ebf4f785d45c6f8746b9a1322347135611be0837fbc0ca97c31fd9d668c521ea796c797
7
- data.tar.gz: 9f42dc421ce8eede7f4741c0ea985ba490acfc42b8626729fd6b7d5ebaa06e8131b8295bf9c21586e2d44b891ac086cdc1f507b2dd3be77120660819b486d22d
6
+ metadata.gz: 00a70c8120e62e9c8174bf646764720fb2840d1ef7316484c132ed8a5eaed4a490851079f8eb797f73aa5688cb5409d116038452045ce1e7738b6b4e4bcceb7b
7
+ data.tar.gz: d0a957a16d247081b9a071752988d4181fb666cfe6ad0ea4ddebac9a7e65b61d5018c4558c679daff0256e9e579158bb15458f4e2c208bfdc44f3faf3cb4ef61
data/bin/rsh CHANGED
@@ -8,7 +8,7 @@
8
8
  # Web_site: http://isene.com/
9
9
  # Github: https://github.com/isene/rsh
10
10
  # License: Public domain
11
- @version = "3.6.3" # Polish: Config persistence, aligned display, smart completion space management
11
+ @version = "3.6.9" # Don't override TERM - let terminal set it
12
12
 
13
13
  # MODULES, CLASSES AND EXTENSIONS
14
14
  class String # Add coloring to strings (with escaping for Readline)
@@ -3029,11 +3029,25 @@ def execute_conditional(cmd_line)
3029
3029
  end
3030
3030
  end
3031
3031
  else
3032
- # Execute the command
3033
- success = system(part)
3032
+ # Execute the command - handle cd as built-in
3033
+ if part =~ /^cd\s+(.+)$/ || part == "cd"
3034
+ dir = $1 || Dir.home
3035
+ dir = dir.sub(/^~/, Dir.home)
3036
+ if Dir.exist?(dir)
3037
+ Dir.chdir(dir)
3038
+ success = true
3039
+ @last_exit = 0
3040
+ else
3041
+ puts " cd: no such directory: #{dir}"
3042
+ success = false
3043
+ @last_exit = 1
3044
+ end
3045
+ else
3046
+ success = system(part)
3047
+ @last_exit = $?.exitstatus
3048
+ puts " Command failed: #{part} (exit #{@last_exit})" unless success
3049
+ end
3034
3050
  result = success
3035
- @last_exit = $?.exitstatus
3036
- puts " Command failed: #{part} (exit #{@last_exit})" unless success
3037
3051
  end
3038
3052
  end
3039
3053
 
@@ -3542,7 +3556,7 @@ begin # Load .rshrc and populate @history
3542
3556
  end
3543
3557
  end
3544
3558
  ENV["SHELL"] = __FILE__
3545
- ENV["TERM"] = "rxvt-unicode-256color"
3559
+ # Don't override TERM - let terminal set it
3546
3560
  ENV["PATH"] ? ENV["PATH"] += ":" : ENV["PATH"] = ""
3547
3561
  ENV["PATH"] += "/home/#{@user}/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
3548
3562
  # Load actual LS_COLORS from file (now that @lscolors is set from .rshrc)
metadata CHANGED
@@ -1,19 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.7
4
+ version: 3.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-16 00:00:00.000000000 Z
11
+ date: 2026-01-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'A shell written in Ruby with extensive tab completions, aliases/nicks,
14
14
  history, syntax highlighting, theming, auto-cd, auto-opening files and more. UPDATE
15
- v3.6.7: Autocorrect fix for commands with extensions - Now correctly recognizes
16
- upload.sh, script.py, etc. in PATH.'
15
+ v3.6.9: Don''t override TERM variable - let terminal emulator set it correctly.'
17
16
  email: g@isene.com
18
17
  executables:
19
18
  - rsh