{"action":"created","issue":{"url":"https://api.github.com/repos/geany/geany/issues/650","labels_url":"https://api.github.com/repos/geany/geany/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/geany/geany/issues/650/comments","events_url":"https://api.github.com/repos/geany/geany/issues/650/events","html_url":"https://github.com/geany/geany/issues/650","id":105705043,"number":650,"title":"[feature request] less noisy history for terminal following current file","user":{"login":"donjan","id":1126467,"avatar_url":"https://avatars.githubusercontent.com/u/1126467?v=3","gravatar_id":"","url":"https://api.github.com/users/donjan","html_url":"https://github.com/donjan","followers_url":"https://api.github.com/users/donjan/followers","following_url":"https://api.github.com/users/donjan/following{/other_user}","gists_url":"https://api.github.com/users/donjan/gists{/gist_id}","starred_url":"https://api.github.com/users/donjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donjan/subscriptions","organizations_url":"https://api.github.com/users/donjan/orgs","repos_url":"https://api.github.com/users/donjan/repos","events_url":"https://api.github.com/users/donjan/events{/privacy}","received_events_url":"https://api.github.com/users/donjan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geany/geany/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-09T23:44:30Z","updated_at":"2015-09-10T09:45:42Z","closed_at":null,"body":"The \"Follow path of the current file\" feature is useful, but floods the global bash history with \"cd ...\" entries. bash and most bash-like terminals will not add a command to the history if an additional whitespace is prepended.\r\nI suggest adding a whitespace in front of \"cd ...\" (-> \" cd ...\"), or offering a checkbox to do so, as to reduce the history noise."},"comment":{"url":"https://api.github.com/repos/geany/geany/issues/comments/139187725","html_url":"https://github.com/geany/geany/issues/650#issuecomment-139187725","issue_url":"https://api.github.com/repos/geany/geany/issues/650","id":139187725,"user":{"login":"donjan","id":1126467,"avatar_url":"https://avatars.githubusercontent.com/u/1126467?v=3","gravatar_id":"","url":"https://api.github.com/users/donjan","html_url":"https://github.com/donjan","followers_url":"https://api.github.com/users/donjan/followers","following_url":"https://api.github.com/users/donjan/following{/other_user}","gists_url":"https://api.github.com/users/donjan/gists{/gist_id}","starred_url":"https://api.github.com/users/donjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donjan/subscriptions","organizations_url":"https://api.github.com/users/donjan/orgs","repos_url":"https://api.github.com/users/donjan/repos","events_url":"https://api.github.com/users/donjan/events{/privacy}","received_events_url":"https://api.github.com/users/donjan/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T09:45:42Z","updated_at":"2015-09-10T09:45:42Z","body":"You're right, it's not the built-in behaviour. But bash on Ubuntu defaults to `ignoreboth` (setting `ignoredups:ignorespace`), which is the reason for opening this issue.\r\nSetting `erasedups` globally is questionable, as you remove lines from any previous and possibly unrelated history chain, which gets confusing if you want to replicate it (especially in a non-Geany context).\r\nI don't see how to set `erasedups` only for the Geany VTE (probably not desirable also in a Geany context): matching a `env` variable in the bash rc doesn't seem very reliable. Diffing `env` for the Geany VTE and a standard interactive session for example gives `VTE_VERSION` only for the latter on this particular machine, and may have side effects in environments set by other programs.\r\nSo my feature request stands as in the OP."}}