Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/haxiomic/dotfiles

dotfiles: .zshrc, .bash_profile & .inputrc with terminal and iterm2 color profiles
https://github.com/haxiomic/dotfiles

Last synced: 23 days ago
JSON representation

dotfiles: .zshrc, .bash_profile & .inputrc with terminal and iterm2 color profiles

Awesome Lists containing this project

README

        

Dotfiles
========

Tested with OS X **10.7** to **12.6**. Colors based on [ahmetsulek's Flat Terminal](https://github.com/ahmetsulek/flat-terminal)

![https://user-images.githubusercontent.com/3742992/191121416-f75e515b-da46-4853-ba56-e3c14bbbb789.png](https://user-images.githubusercontent.com/3742992/191121416-f75e515b-da46-4853-ba56-e3c14bbbb789.png)

### Installation

- First deal with your current .zsh file by backing up and removing if you have one
- Navigate to where you've cloned the repo and run:

```bash
ln -s $(pwd)/.zshrc $HOME/.zshrc
ln -s $(pwd)/.gitignore $HOME/.gitignore
```

- Open the .terminal file and change profile preferences to set it as the default

### Aliases & Features
- **s** - *opens a file in sublime text*
- **si** *\* - *open the result of a command in text editor, eg `si git diff`*
- **sman** *\* - *open the man page of a command in text editor, eg `sman top`*
- **o** - *short for open. 'o' opens the current directory in finder*
- **l** - *list files in long format*
- **la** - *list all files including dotfiles, in long format*
- **trash** *\* - *move file to trash*
- **serve** *starts a web server at the current directory*

###### navigation
- **z** ** - *jump to commonly used directories*
- **bk** - *go back a directory*
- **desktop** - *cd ~/Desktop*
- **..** - *cd ..*
- **...** - *cd ../..*
- **....** - *cd ../../..*
- **.....** - *cd ../../../..*

###### git
- **gs** - *git status*
- **ga** - *git add .*
- **gc** *\* - *git commit -m*
- **gca** *\* - *git commit -a -m*
- **gcap** *\* - *git commit -a -m \ && git push*
- **gpush** - *git push*
- **gpull** - *git pull*
- **gdiff** - *git diff*
- **gk** - *git checkout*
- **gsetup** ** - *initialises repo with a given url*
- **gopen** - *opens current repository in a browser* [more info](https://github.com/paulirish/git-open/blob/master/git-open)

### Auto-installed scripts

Additional scripts installed into ~/.bash_scripts/ on first run

- [z jump script](https://github.com/rupa/z) - 'Tracks your most used directories, based on frequency'
- [git-completion](https://github.com/git/git/tree/master/contrib/completion) - Autocomplete for git from Github's main repository
- [trash](https://github.com/morgant/tools-osx) - 'trash allows trashing of files instead of tempting fate with rm'
- [git-open](https://github.com/paulirish/git-open) - 'Type git-open to open the GitHub page or website for a repository in your browser'

### Dependencies
- git
- node.js/npm

### Sublime style keybindings for Xcode
Symlink or copy [Sublime.idekeybindings](Sublime.idekeybindings) into `~/Library/Developer/Xcode/UserData/KeyBindings/`

```bash
ln -s $(pwd)/Sublime.idekeybindings ~/Library/Developer/Xcode/UserData/KeyBindings/Sublime.idekeybindings
```

### Key bindings iTerm2 (manual entry)
text-editor style line navigation

| Combo | Action | Send |
|------- |---------------- |------ |
| ⌘← | "HEX CODE" | 0x01
| ⌘→ | "HEX CODE" | 0x05
| ⌥← | "SEND ESC SEQ" | b
| ⌥→ | "SEND ESC SEQ" | f