Commit graph

445 commits

Author SHA1 Message Date
e7afc83ef1 updated pacman.conf 2024-10-17 12:09:01 +03:30
ef681f0b94 updated pacman.conf 2024-10-17 12:08:08 +03:30
bb40c35d62 added budgie 2024-05-05 18:42:26 +03:30
9bd2dbbc7c fixed readme 2024-05-01 10:17:36 +03:30
aa23333cfd added branding 2024-05-01 10:16:52 +03:30
1da277eb00 added hyprland 2024-05-01 10:13:28 +03:30
a65ed2a768 added Cinnamon and XFCE dotfiles 2024-05-01 10:12:08 +03:30
0cf138d41f changed license to GPL-3 2024-05-01 10:04:18 +03:30
50d7e462be removed un-needed files 2024-05-01 10:01:59 +03:30
039306a48f updated readme 2024-05-01 09:59:33 +03:30
9049731906 added pacman config 2024-05-01 09:58:34 +03:30
a9d7fd31ad font configs 2024-05-01 09:54:27 +03:30
komeil Parseh
b11f233fec
Customize dotfiles for Parch 2023-02-16 12:27:43 +03:30
Abhineet
5b406261f7
Fix ZSH syntax error (#711)
Fixes the syntax error introduced in #710.
2022-12-14 09:48:04 -05:00
Abhineet
fc2624997b
Fix sourcing of asdf.sh (#710)
Installing asdf via Homebrew now requires souring from a different path.

This same issue was recently fixed in thoughbot/laptop by @cpytel, and so I've copied the changes from this commit:
aa3a84e15e
2022-12-13 09:33:10 -05:00
Rob Whittaker
69b8ce1e84
Add a Silver Searcher shortcut
Before, we dropped our custom "Ag" command in favour of the version with
fzf.vim. Unfortunately, this change also removed the handy "\" shortcut
to activate Silver Searcher. We added the shortcut back to the Vim
configuration.
2022-10-04 10:30:55 +01:00
Daniel Nolan
fc9f7798f8
Add eval command for homebrew to zshenv (#707)
* I recently setup my M1 mac and had a similar problem to this issue
  reported here https://github.com/thoughtbot/dotfiles/issues/702
  The fix for me was to do what homebrew says after the install which is
  to add to or create a .zprofile with the following command
  `eval "$(/opt/homebrew/bin/brew shellenv)"`
* Introduce a zprofile with commands to eval homebrew on mac or linux if
  the homebrew directory exists
2022-09-23 16:39:36 -04:00
Daniel Nolan
dc847d22f3
Do not override :Ag command in vim (#706)
* The Ag command from fzf.vim that loads the fzf shell does seem
  more useful than than the command being defined here. The one downside
  I see though is that `:Ag some_search` will open the fzf shell rather than
  populating the vim quickfix window, however you can just select all
  files in the fzf shell with alt-a and click enter to add all the files
  in the fzf shell to a quickfix window.
* Remove custom :Ag command vim in favor of :Ag command defined in
  fzf.vim
* Closes #682
2022-09-23 11:33:17 -04:00
Dorian Marié
65cc8ef084 typo clear_port -> clear-port 2022-05-08 12:05:30 -04:00
Garen Torikian
de5e0385ba Fix typo 2022-05-02 10:40:35 -04:00
Alejandro Dustet
e41338084e
Add helper to list process running in a given port
Why:
----

Whenever we run a command to use a certain port and we get an error that
the port is in use, we have can either:
1. Clear the port so our new process can use it
2. Try and use a new port for the command we just typed

In order to make a decision about it, we need information on what is
running on that port, so we can determine if we want to stop that
process or if it's important enough to keep.

What:
----

Two new commands are added to /bin. One to output
information about the process using a provided port:

``` bash
$ whats-in-port 3000
$ COMMAND   PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
$ ruby    25583   root   11u  IPv4 0xee20607697a79bf7      0t0  TCP *:irdmi (LISTEN)
```

This command uses the [lsof] program to get information of the process
utilising that port.

And another one making use of the previous utility to kill the process
running in that port:

``` bash
$ clear-port 3000
```

[lsof]: https://linux.die.net/man/8/lsof

Co-authored-by: Mike Burns <mburns@thoughtbot.com>
Co-authored-by: Edward Loveall <edward@thoughtbot.com>
2022-04-29 15:18:11 -04:00
burnettk
fd342fdeed markdown files probably never need to be symlinked, and this adds CODE_OF_CONDUCT.md 2022-03-29 14:15:46 -04:00
Konstantin Filtschew
5ad215adcb Updated README to use encrypted git connection
Due to current changes on GitHub, users are forced to use encrypted
connections only, see:
https://github.blog/2021-09-01-improving-git-protocol-security-github/

This is the corresponding change in READMEs.
2022-03-16 08:12:28 -04:00
Valeria Graffeo
42a313bde1 Replace rake commands with bin/rails in aliases. 2021-07-19 12:51:15 -04:00
Dario Vladovic
67c63699dc Update readme to use Homebrew core rcm formula 2021-07-03 15:20:47 -04:00
RJ Dellecese
b7df0406cd Set syntax highlighting for all zsh startup files 2021-07-03 15:20:27 -04:00
burnettk
773764a9a4 allow users to opt out of default ctags leader mapping 2021-07-03 15:20:06 -04:00
burnettk
219fd82be6 fixes #674. remove config that has now been built in to ctags itself
i removed configs so that one can run ctags -R in a rails app without
the program exiting badly. i verified that Elixir definitions exist in
ctags itself (in
~/Library/Caches/Homebrew/universal-ctags--git/optlib/elixir.ctags for
me).
2021-07-03 15:20:06 -04:00
Brian Penguin
d6a9ff7a62
Add our default Code of Conduct (#686)
This should belong on all of our projects
2021-02-21 16:01:27 +00:00
Marek Suscak
2a59c1890f
Use if instead of && in git hooks (#680)
This prevents a Git hook from issuing a non-zero exit status if the condition is the last line of the hook.
2020-12-09 09:53:29 -05:00
Sean Doyle
de02da4fc6
Don't gitignore tags/ directories (#677)
* Don't gitignore tags/ directories

For example, the [rails/rails][] project has an entire directory of
classes with `tags` in the name, which hides it from search tools (like
[`ag` The Silver Searcher][ag]) and prevents committing changes or
introducing new files.

Support for ignoring [files named `tags`][git_template/hooks], but
including _directories_ named `tags/` was originally introduced in
[a99fbb0][], but was subsequently broken when the [negative `!tags/`
pattern declaration][] was moved _above_ the `tags` line that it
negated.

Instead of fighting the ignore patterns, this commit removes both lines.
We currently ignore the contents of the [`.git/` directory][.git/],
which is where [we store the `tags` file generated in our
`git_template/hooks/ctags` command][git_template/hooks], so we should be
covered without explicit declarations.

[rails/rails]: https://github.com/rails/rails/tree/master/actionview/lib/action_view/helpers/tags
[ag]: https://github.com/ggreer/the_silver_searcher/tree/2.2.0#whats-so-great-about-ag
[a99fbb0]: a99fbb0f57
[gitignore-pattern]: https://git-scm.com/docs/gitignore#_pattern_format
[git_template/hooks]: 56d614f806/git_template/hooks/ctags (L10)
[.git/]: 56d614f806/gitignore (L8)

* Ignore `tags` file

In case a `tags` file is declared outside `.git/tags`, continue to
ignore it, while still supporting `tags/` directories.
2020-10-09 12:12:36 -04:00
Joe Ferris
e5c5ff3ebd Use defaultBranch instead of git_template
Git 2.28 now has a setting to change the default branch for new
repositories. This sets init.defaultBranch to main and removes the HEAD
file from the git template.

The HEAD file will need to be removed from ~/.git_template manually, as
rcup does not remove deleted files.

https://github.blog/2020-07-27-highlights-from-git-2-28/#introducing-init-defaultbranch
2020-08-28 17:34:47 -04:00
Joe Ferris
56d614f806
Initialize new repositories with a main branch
New Git repositories start out without any branches, but the HEAD
reference points to "master" by default. This means that the first
commit will create a master branch.

This change adds a HEAD file to the Git template with a different ref.
This means that new repositories will commit to a "main" branch by
default instead.

The HEAD file is added to COPY_ALWAYS, because Git's HEAD must be a
regular file and not a symbolic link.
2020-06-19 14:08:12 -04:00
Geoff Harcourt
2e3d643c54 Fetch origin and rebase against origin with git-up
In f252ba4 we lost some of the functionality of `git-up`. This change
brings back rebasing against the origin's reference and not the local
reference of the main branch. We also explicitly fetch from `origin` now
to be sure we're current before rebasing.

Close #671
2020-06-18 13:53:53 -04:00
Rob Whittaker
d499cc56db
Add fetch into Git "up" function
In [a previous commit], we removed the fetching of the "origin" remote
from the "up" Git function. With this change, developers had to fetch
manually before rebasing their branch. We added the fetch back into the
"up" Git function.

[a previous commit]: f252ba46d1 (diff-b973d5fb5d66981ace5c069881095355)
2020-06-18 14:50:10 +01:00
Daniel Barber
f07398b032 No primary branch reference is an error 2020-06-17 17:07:23 -04:00
Daniel Barber
5a10c0c096 Get the name of the main branch from remote 2020-06-17 17:07:23 -04:00
Daniel Barber
69a95f60ea Accept optional branch name
There's been a recent movement to rename the "master" branch in git
repositories to "main" to avoid to potentially problematic word
"master". Our `merge-branch` script was hard coded to "master". This PR
makes it possible to pass in the name of the branch you wish to merge
to. I've defaulted it to "master" for now, but I expect in time this
will change.
2020-06-17 17:07:23 -04:00
Geoff Harcourt
f252ba46d1 Allow flexible trunk branch for git-up
Our team is renaming the base branch of our application from `master` to
`trunk`. I had held off on doing this in the past because `git up -i`
has become such an huge muscle memory thing and I didn't want a script
to only work on some of my frequent repositories.

This [trick from Stack Overflow](https://stackoverflow.com/a/49384283/1190970)
shows how to grab the name of the primary branch for a remote branch without an
expensive git operation. It'll allow a rebase against the tip of the primary
remote branch regardless of its name.
2020-06-12 13:27:17 -04:00
Tyson Gach
aaa2c3cd09 Configure asdf's legacy_version_file setting
asdf has a very useful configuration setting called
`legacy_version_file`. When it is set to `yes`, asdf will read the
version files used by other version managers (e.g. `.ruby-version`) in
addition to asdf's own `.tool-versions` file. This makes the migration
to asdf much smoother, as many projects only specify these 'legacy'
dotfiles for versioning.

Documentation: https://asdf-vm.com/#/core-configuration?id=homeasdfrc

Closes https://github.com/thoughtbot/dotfiles/issues/654
2020-03-01 22:21:42 -05:00
Kevin Burnett
d657a32ba5 ensure good exit status for aliases script 2020-01-17 18:36:32 -05:00
Tyson Gach
0f6351367a
Remove FUNDING.yml
We have instead moved thoughtbot's global `FUNDING.yml` to the
[`thoughtbot/.github`][.github-repo] repo. It's a special repo that
GitHub supports for [setting default community health
files][github-docs].

[.github-repo]: https://github.com/thoughtbot/.github
[github-docs]: https://help.github.com/en/github/building-a-strong-community/creating-a-default-community-health-file-for-your-organization
2019-12-12 13:49:11 -05:00
Tyson Gach
6c21745753
Configure GitHub Sponsors
https://help.github.com/en/github/administering-a-repository/displaying-a-sponsor-button-in-your-repository
2019-12-12 11:25:01 -05:00
Eebs Kobeissi
eeb52a87f6 Adds a commit-msg git hook
People may wish to configure a `commit-msg` hook in their local
dotfiles.

This allows them to do so by adding a [`commit-msg` git hook][1] that
checks for the presence of a local `commit-msg` hook, and runs it if
present. This hook follows the existing pattern we use for other git
hooks.

[1]: https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
2019-11-18 09:29:31 -05:00
Stephanie Viccari
d27cceb0be Revise how we check for existing FZF executable
Summary:
This change addresses an error that occurs when we've instructed vim to
reference the wrong path for an existing FZF executable.

Additional Details:
In the previous approach, when checking if FZF has already been
installed, we make the assumption that if FZF is `executable` it was
installed via Homebrew. Then, based on that assumption, we set vim's
`runtimepath` to reference the directory where Homebrew creates symlinks
for installed packages (`/user/local/opt`).

Because of this assumption, anyone that has FZF installed in a different
directory, and available as an executable in their $PATH, attempting to
use FZF within vim will result in an error. The reason vim errors is
because `Plug` has instructed vim's `runtimepath` to look in the wrong
location for FZF (in this case, we told vim to look for FZF within
`/user/local/opt` when the FZF executable lives somewhere else).

The revised approach still attempts to find an existing FZF package
before proceeding with installing FZF.
2019-10-14 23:12:28 -04:00
Carles Jove i Buxeda
0d9416f19c Set tags for vim-fugitive 2019-10-11 09:38:29 -04:00
Jesse Bailey
e38b069478 Update description of migrate alias
Update the README description of the `migrate` alias to match the actual alias
2019-10-11 09:35:41 -04:00
Stephanie Viccari
3001fd3d65 Replace CtrlP with FZF
Summary:
Using CtrlP has proven to be slower and has fewer features. We've been
switching over to FZF on a frequent enough basis that it feels
appropriate to make FZF the new default for fuzzy searching.

By swapping out Ctrlp in favor of FZF, this should not break anyone's
fuzzy search but it will replace the tool that executes the search.

Co-authored-by: Chris Toomey <chris@ctoomey.com>
2019-08-21 14:37:31 -04:00
Roman Frołow
2e49faecfe has-session - only exact matches
from man
>If the session name is prefixed with an ‘=’, only an exact match is accepted (so ‘=mysess’ will only match exactly ‘mysess’, not ‘mysession’).
2019-08-20 14:37:10 -04:00
Alan Yee
cdc55ef186 Disable modeline magic
The modelines option has a history of security issues, particularly with
arbitrary code execution. Best to disable modelines explicitly as a
securiy precaution. More details here:
https://security.stackexchange.com/questions/36001/vim-modeline-vulnerabilities
2019-08-20 14:28:05 -04:00