Lemmings.world
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Jeezy@lemmy.world to Programming@programming.devEnglish · 2 years ago

Sensible $WORDCHARS for Most Developers

lgug2z.com

external-link
message-square
3
link
fedilink
48
external-link

Sensible $WORDCHARS for Most Developers

lgug2z.com

Jeezy@lemmy.world to Programming@programming.devEnglish · 2 years ago
message-square
3
link
fedilink
Have you ever hit alt + backspace while in a zsh session, intending to delete just the last part of a path, or a word, or an identifier, but ended up deleting far more than that? This is probably because you are using the default value for $WORDCHARS. The default value for $WORDCHARS is *?_-.[]~=/&;!#$%^(){}<> i.e. pretty much everything and the kitchen sink. Usually, therefore, you will want to remove characters which you don’t want to be considered parts of words
alert-triangle
You must log in or register to comment.
  • cd_slash_rmrf@programming.dev
    link
    fedilink
    arrow-up
    8
    ·
    2 years ago

    Short, simple, informative, and helpful. 10/10

  • jeffhykin@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    I’ve been wanting to change this setting for SO LONG I just didn’t know what it was called. Very happy to accidentally run into this

  • southernbrewer@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    You can delete a word in a terminal? Is this zsh specific or is there a bash equivalent?

    Terminal user for 20 years, never heard of this.

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 887 users / day
  • 1.6K users / week
  • 2.93K users / month
  • 7.63K users / 6 months
  • 84 local subscribers
  • 21.6K subscribers
  • 2.3K Posts
  • 35.3K Comments
  • Modlog
  • mods:
  • snowe@programming.dev
  • Ategon@programming.dev
  • MaungaHikoi@lemmy.nz
  • UlrikHD@programming.dev
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org