cp $(dirname $(gem which colorls))/yaml/files.yaml ~/.config/colorls/files.yaml` Copy the default files.yaml and change it. Let's say you want to add an icon for swift files. Please have a look at the list of supported icons. Or, using hex color codes: untracked: '#FFFF00' In the ~/.config/colorls/dark_colors.yaml file, change the color set for untracked from darkorange to yellow, and save the change. cp $(dirname $(gem which colorls))/yaml/dark_colors.yaml ~/.config/colorls/dark_colors.yaml Copy the defaut dark_colors.yaml and change it. Let's say that you're using the dark color scheme and would like to change the color of untracked file ( ?) in the -git-status flag to yellow. You may also use a color hex code as long as it is quoted within the YAML file and prefaced with a # symbol. Please have a look at the list of supported color names. You can overwrite the existing icons and colors mapping by copying the yaml files from $(dirname $(gem which colorls))/yaml into ~/.config/colorls, and changing them. To add some short command (say, lc) with some flag options (say, -l, -A, -sd) by default, add this to your shell configuration file ( ~/.bashrc, ~/.zshrc, etc.) : alias lc='colorls -lA -sd'įor changing the icon(s) to other unicode icons of choice (select icons from here), change the YAML files in a text editor of your choice (say, subl) subl $(dirname $(gem which colorls))/yaml Have a look at Recommended configurations and Custom configurations. rbenv rehashĮnable tab completion for flags by entering following line to your shell configuration file ( ~/.bashrc or ~/.zshrc) : source $(dirname $(gem which colorls))/tab_complete.sh Note for rbenv users - In case of load error when using lc, please try the below patch. Install the colorls ruby gem with gem install colorls Note for HyperJS users - Please add "Hack Nerd Font" Font as an option to fontFamily in your ~/.hyper.js file. Note for iTerm2 users - Please enable the Nerd Font at iTerm2 > Preferences > Profiles > Text > Non-ASCII font > Hack Regular Nerd Font Complete. Have a look at the Nerd Font README for installation instructions. Install Ruby (preferably, version >= 2.6)ĭownload and install a Nerd Font.In order to tweak any color, read Custom configurations. By default, the dark color scheme is chosen. With color options : -light or -dark can be passed as a flag, to choose the appropriate color scheme. With -t : Sort by modification time, newest first (NEED TO ADD IMAGE)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |