Skip to content
Snippets Groups Projects
  1. Jan 29, 2018
  2. Jan 23, 2018
  3. Jan 21, 2018
  4. Aug 17, 2017
    • Yorhel's avatar
      Use C99 flexible array member for struct dir · a830f7df
      Yorhel authored
      This should fix https://dev.yorhel.nl/ncdu/bug/99 - with the downside
      that this requires a C99 compiler.
      
      I also replaced all occurrences of static allocation of struct dir with
      use dynamic allocation, because I wasn't really sure if static
      allocation of flexible structs is allowed. In the case of dirlist.c the
      dynamic allocation is likely required anyway, because it does store a
      few bytes in the name field.
      a830f7df
  5. Jul 08, 2017
    • Yorhel's avatar
      Add support for colors and sprinkle some colors around · a369a43d
      Yorhel authored
      TODO:
      - Add (ls-like) colors to the actual file names
        -> Implement full $LS_COLORS handling or something simple and custom?
      - Test on a white/black terminal, and provide an alternate color scheme
        if necessary.
      - Make colors opt-in?
      a369a43d
  6. Mar 27, 2017
  7. Jan 06, 2017
  8. Aug 24, 2016
  9. Jan 12, 2016
  10. Sep 23, 2015
  11. Sep 20, 2015
  12. Sep 19, 2015
  13. Aug 03, 2015
  14. Jun 02, 2015
    • Øyvind A. Holm's avatar
      doc: Document /bin/sh as default shell · 3a21a634
      Øyvind A. Holm authored
      The default shell was changed from /bin/bash to /bin/sh in commit
      61a7846c ("config: Use /bin/sh as default shell and don't check for its
      existence", 2015-04-05), update the documentation about this.
      3a21a634
    • Øyvind A. Holm's avatar
      Check for NCDU_SHELL environment variable when spawning shell · 7be85679
      Øyvind A. Holm authored
      Check if the environment variable NCDU_SHELL is defined before the SHELL
      variable is checked. This makes it possible to specify a program to
      execute when 'b' is pressed. Setting SHELL to for example "mc" (Midnight
      Commander) didn't work because mc already uses SHELL to execute
      commands.
      7be85679
  15. May 07, 2015
  16. Apr 07, 2015
  17. Apr 05, 2015
  18. Dec 14, 2014
    • Yorhel's avatar
      Minor fixes to new shell feature · 777db9a5
      Yorhel authored
      The check for the system() exit status is slightly problematic, because
      bash returns the status code of the last command it executed. I've set
      it to only check for status code 127 now (command not found) in order to
      at least provide a message when the $SHELL command can't be found. This
      error can still be triggered when executing a nonexistant command within
      the shell and then exiting.
      777db9a5
    • Thomas Jarosch's avatar
      Add ability to spawn shell · a25e5f80
      Thomas Jarosch authored
      
      Key 'b' in the browse window spawns a shell in the current directoy.
      
      We first check the $SHELL environment variable of the user for the preferred
      shell interpreter. If it's not set, we fall back to the compile time
      configured default shell (usually /bin/bash).
      
      Signed-off-by: default avatarThomas Jarosch <thomas.jarosch@intra2net.com>
      a25e5f80
  19. Aug 03, 2014
  20. Apr 13, 2014
  21. Jan 22, 2014
    • Yorhel's avatar
      Copyright year update · efece12c
      Yorhel authored
      efece12c
    • Yorhel's avatar
      Add support for browsing empty directories · fe932c7b
      Yorhel authored
      Turns out that being able to open an empty directory actually has its
      uses:
      - If you delete the last file in a directory, you now won't be directed
        to the parent directory anymore. This allows keeping 'd' pressed
        without worrying that you'll delete stuff outside of the current dir.
        (This is the primary motivation for doing this)
      - You can now scan and later refresh an empty directory, as suggested by
        #2 in http://dev.yorhel.nl/ncdu/bug/15
      fe932c7b
Loading