1. 18 Aug, 2020 1 commit
  2. 17 Aug, 2020 1 commit
  3. 04 Aug, 2020 1 commit
  4. 05 Apr, 2020 1 commit
  5. 03 Mar, 2020 1 commit
  6. 24 Feb, 2020 1 commit
  7. 19 Sep, 2019 1 commit
    • Marc Cornellà's avatar
      Fix WSL check for WSL 2 and simplify nohup in open_command · 095d56b5
      Marc Cornellà authored
      WSL 2 changes the output of `uname -r`. For instance,
      
        WSL 1: 4.4.0-18980-Microsoft
        WSL 2: 4.19.67-microsoft-standard
      
      Since WSL 2 lowercases the M, we can match for the rest of the string
      which remains lowercase throughout both versions. Another option would
      be to match for both upper- and lower-case Ms, like that:
      
        $(uname -r) = *[Mm]icrosoft*
      
      Fixed use of nohup in open_command where it was only necessary for
      xdg-open (and actually harmful for cmd.exe in WSL 2). The current logic
      is simpler and more future-proof.
      095d56b5
  8. 25 Feb, 2019 1 commit
  9. 09 Aug, 2018 1 commit
  10. 02 Jul, 2018 1 commit
  11. 30 Jun, 2018 2 commits
    • Marc Cornellà's avatar
      open_command: fix and improve command for WSL · f898ada8
      Marc Cornellà authored
      - Add double quotes to command so that the next argument isn't
        interpreted as the title for the start command.
      
      - If the first argument is a valid path, convert it to Windows path
        notation. If `wslpath` fails—because it's a path from inside WSL,
        which cannot be converted to Windows path notation— fail with an
        error code.
      
        This last circumstance will show an error like so:
      
          wslpath: path: Result not representable
      f898ada8
    • Marc Cornellà's avatar
      open_command: simplify code · 12086593
      Marc Cornellà authored
      12086593
  12. 24 Apr, 2018 1 commit
  13. 30 Dec, 2016 1 commit
  14. 09 Aug, 2016 1 commit
  15. 30 Nov, 2015 3 commits
    • Marc Cornellà's avatar
      Use shwordsplit in open_command() · 584e0a6e
      Marc Cornellà authored
      584e0a6e
    • Marc Cornellà's avatar
      Add empty string parameter to start command · afdfe239
      Marc Cornellà authored
      Otherwise `start` will confuse the first parameter as the title of
      a new command prompt if the parameter contains whitespace. That is
      because the command to be run will be:
      
          start "abc def"
      
      which opens a new command prompt window with the title "abc def".
      With the added empty string we force the start command to interpret
      the passed parameter as the file / command:
      
          start "" "abc def"
      
      which will be interpreted like `""` is the title and the rest is
      the file or command to start.
      
      -------
      
      **NOTE:** this wouldn't be necessary if the start script in msys
      was defined differently; that is, if it had the empty string
      already incorporated in the script (/usr/bin/start), like so:
      
      ```diff
      -cmd //c start "${@//&/^&}"
      +cmd //c start "" "${@//&/^&}"
      ```
      
      Notice however that this would make it impossible to use start
      setting a different title, so it's probably best to leave it as is.
      
      More info: http://sourceforge.net/p/msys2/tickets/14/
      
      -------
      
      The change `${(z)open_cmd}` is necessary to force zsh to split the
      variable by the spaces and interpret it as separate words.
      
      More info: http://zsh.sourceforge.net/FAQ/zshfaq03.html#l17
      afdfe239
    • Mark Ingalls's avatar
      make this work in the git-for-windows SDK · 0a79f1e8
      Mark Ingalls authored
      Added an option for the msys value of $OSTYPE
      0a79f1e8
  16. 29 Nov, 2015 1 commit
    • Marc Cornellà's avatar
      Fix open_command nohup call · fea74b4b
      Marc Cornellà authored
      There a syntax error if $cmd_var contains more than one word,
      so we drop the current way to prepend nohup and use a simpler
      if-else form.
      fea74b4b
  17. 27 Nov, 2015 2 commits
  18. 18 Aug, 2015 1 commit
  19. 09 Aug, 2015 1 commit
  20. 04 Aug, 2015 1 commit
  21. 20 Aug, 2014 1 commit
  22. 06 Feb, 2014 1 commit
  23. 14 Nov, 2012 1 commit
    • CHH's avatar
      Improved statistics functions, effect: · 5b2ca387
      CHH authored
       1  1124  24.6006%    c
       2  985   21.5583%    git
       3  343   7.50711%    rails
       4  328   7.17881%    cd
       5  314   6.8724%     rspec
       6  257   5.62486%    la
       7  197   4.31167%    rake
       8  154   3.37054%    s
       9  109   2.38564%    ..
      10  95    2.07923%    rvm
      11  68    1.48829%    guard
      12  36    0.787919%   bundle
      13  29    0.634712%   ssh
      14  28    0.612826%   pry
      15  27    0.590939%   open
      16  26    0.569052%   middleman
      17  26    0.569052%   gem
      18  24    0.525279%   rm
      19  24    0.525279%   heroku
      20  23    0.503392%   nvm
      5b2ca387
  24. 28 May, 2012 2 commits
  25. 25 Dec, 2011 1 commit
  26. 02 Jun, 2011 1 commit
  27. 30 Jan, 2011 1 commit
    • Renaud (Nel) Morvan's avatar
      Refactor window and tab title in tty · faac3ba8
      Renaud (Nel) Morvan authored
      Term window title and tab title are now skinable
      Tab title can be different from window title (when supported by term)
      Default theme is optimized of usuability (no %u@%m: $~ in a 10 char tab)
      Cleanup code duplication and add comment for supported terms
      On osX it works great on iterm, and is decent once you tweak Terminal pref
      Tested under GNU screen, iTerm and Apple Terminal, need to be tested on linux
      TODO implement Konsole support (via dbus)
      faac3ba8
  28. 24 Jan, 2011 1 commit
  29. 10 Jan, 2011 1 commit
  30. 25 Dec, 2010 1 commit
  31. 24 Dec, 2010 1 commit
  32. 09 Oct, 2010 2 commits
    • Sven Lito's avatar
      merging in changes from robby's repo · dc12853b
      Sven Lito authored
      dc12853b
    • Brandon Philips's avatar
      functions: fix title() to not match any $TERM · aab235f6
      Brandon Philips authored
      
      
      On my linux virtual terminals, where TERM="linux", I was getting
      annoying output that was messing up my prompt.
      
      It turns out the title function was always matching on the elif
      statement for xterm/rxvt no matter what and the linux vt doesn't know
      what to do with the title special control sequence and thus was printing
      out garbage.
      
      Through experimentation I figured out that the || inside of the [[ ]]
      did not work:
      
      export TERM=linux
      $ if [[ $TERM =~ "^xterm" || $TERM == "rxvt" ]]; then echo $TERM; fi
      linux
      
      $ if [[ $TERM =~ "^xterm" ]] || [[ $TERM == "rxvt" ]]; then echo $TERM; fi
      Signed-off-by: default avatarBrandon Philips <brandon@ifup.org>
      
      openSUSE running zsh 4.3.10
      aab235f6
  33. 01 Oct, 2010 1 commit
  34. 03 Jun, 2010 1 commit