Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  • color prompt
    • Panel

      $ vi ~/.bashrc

       


      force_color_prompt=yes

       


      $ source ~/.bashrc

  • Bash Colorset
    Image Added

    • Panel

      Slot 1: Red: 48, Green: 10, Blue: 36
      Slot 2: Red: 52, Green: 101, Blue: 164
      Slot 3: Red: 78, Green: 154, Blue: 6
      Slot 4: Red: 6, Green: 152, Blue: 154
      Slot 5: Red: 204, Green: 0, Blue: 0
      Slot 6: Red: 117, Green: 80, Blue: 123
      Slot 7: Red: 196, Green: 160, Blue: 0
      Slot 8: Red: 211, Green: 215, Blue: 207
      Slot 9: Red: 85, Green: 87, Blue: 83
      Slot 10: Red: 114, Green: 159, Blue: 207
      Slot 11: Red: 138, Green: 226, Blue: 52
      Slot 12: Red: 52, Green: 226, Blue: 226
      Slot 13: Red: 239, Green: 41, Blue: 41
      Slot 14: Red: 173, Green: 127, Blue: 168
      Slot 15: Red: 252, Green: 233, Blue: 79
      Slot 16: Red: 238, Green: 238, Blue: 238


      화면 텍스트, 팝업 배경: Slot 16 선택

      화면 배경, 팝업 텍스트: Slot 1 선택

  • bash script 실행 시 /bin/sh^M: bad interpreter: No such file or directory 에러 발생할 때

    • 윈도우에서 편집한 스크립트일 경우 발생
    • vi -b <file name> 으로 ^M 을 지워줌
    • 현재 디렉토리 이하 모든 파일 한 번에 변환하기
      • $ find . -type f -exec dos2unix {} {} \;