Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jblond/dotfiles
my dot files with git and docker extension for windows and linux
https://github.com/jblond/dotfiles
bash bash-completion bash-hacks bash-prompt bash-script bashrc bashrc-configs diff docker dotfiles git git-plugin git-prompt linux nested-session ps1 sh-ssh shell ssh windows
Last synced: 23 days ago
JSON representation
my dot files with git and docker extension for windows and linux
- Host: GitHub
- URL: https://github.com/jblond/dotfiles
- Owner: JBlond
- License: mit
- Created: 2015-01-20T13:40:10.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T19:14:21.000Z (about 2 months ago)
- Last Synced: 2024-09-18T18:49:17.229Z (about 2 months ago)
- Topics: bash, bash-completion, bash-hacks, bash-prompt, bash-script, bashrc, bashrc-configs, diff, docker, dotfiles, git, git-plugin, git-prompt, linux, nested-session, ps1, sh-ssh, shell, ssh, windows
- Language: Shell
- Homepage:
- Size: 2.5 MB
- Stars: 16
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dotfiles
![shell2](assets/shell02.png)
I use my dotfiles on bash and fish shell from git for windows, debian bash and fish , ubuntu bash and fish. Works on OSX bash, too.
Using tmux on git for windows download the [Git for Windows SDK](https://github.com/git-for-windows/build-extra/releases/latest)
and run pacman.```bash
git clone -c core.autocrlf=false https://github.com/JBlond/dotfiles.git
cd dotfiles
make update
# on windows
pacman -S tmux fish make
winget install BurntSushi.ripgrep.MSVC
```## emojis in mintty
### make script
```bash
make fonts
```### OR
make the emojis yourself
in C:\Program Files\Git\usr\share\mintty\emojis or C:\git-sdk-64\usr\share\mintty\emojis download
```bash
mkdir emojis
cd emojis
curl -LO https://raw.githubusercontent.com/wiki/mintty/mintty/getemojis
./getemojis -d
```download
[JBlond/emojis](https://github.com/JBlond/emojis)
#### config
Mintty -> Options -> Text -> Emojis -> Style -> google
Mintty -> Options -> Text -> Emojis -> Placement -> middle
### mintty with emoji
![shell3](assets/shell-with-emojis.png)
## install and update use make
[make options](docs/install.md)
## bash
**[bash functions README](docs/bash.md)**
```BASH
jblond@linux:~/dotfiles
(main)[▼2] ✓
λ
jblond@linux:~/dotfiles
(main)[▼2] ✓
λ git pull
jblond@linux:~/dotfiles
(main) ✓
jblond@linux:~/dotfiles
(main) 1⬤ 4Ξ 1✗ 1⚡⚡
λ git commit -a -m "my commit"
jblond@linux:~/dotfiles
(main)[▲1] ✓
λ git push
jblond@linux:~/dotfiles
(main) ✓
λ
jblond@linux:~/dotfiles
(main) ✓
λ ..
jblond@linux:~
λ```
- ✓ = repo is clean
- n⚡⚡ = n untracked files
- nΞ = n added files
- n⬤ = n modified files
- nᏪ = n renamed files
- n✗ = n deleted files
- [▲n] = n steps ahead of remote
- [▼n] = n steps behind remote## git aliases and commands
**[git README](docs/git.md)**
**[git aliases](git/aliases.ini#L2-L53)**
![shell1](assets/shell01.png)
![shell3](assets/shell03.png)
![shell4](assets/commit.png)
## ssh / remote session
ssh://user@host:🏠
## fast fish prompt
```bash
time fish_prompt 13ms []15:55
✓ root@host ~
λ
________________________________________________________
Executed in 13,11 millis fish external
usr time 7,80 millis 1,37 millis 6,43 millis
sys time 5,08 millis 4,12 millis 0,96 millis✓ root@host ~
λ
```## Functions
- [fish functions](docs/fish.md)
- [goto](https://github.com/iridakos/goto)
- bash completion
- ssh completion ssh example TAB reads the ~/.ssh/config file for host completion
- [diff-so-fancy](https://github.com/so-fancy/diff-so-fancy) fancy diff for git ( and others)
- [docker aliases + ssh into docker / docker exec completion](bashrc/04_docker.sh). e.g. dssh example TAB
- git_functionspart for simplify git. an = add next git file dn = diff next file
- git-prompt have a nice prompt inside git repos
- [git alias](docs/git.md)### Fish complete
for better completion run `fish_update_completions`
## Tmux
**[tmux README](docs/tmux.md)** custom shortcuts and other good stuff
![shell4](assets/shell04.png)
![shell5](assets/vim-in-tmux-1.png)### Powerline theme
![shell6](assets/powerline-theme.png)
Activate with CTRL + B +
See also [tmux README](docs/tmux.md)
The [power line font](https://github.com/JBlond/dotfiles/raw/main/assets/ttf/Lucida_Console_NerdFont_Complete_Mono.ttf) is included in the repo.
## Vim
Vim has different Syntax highlighting themes. Can be changed using CTRL + Y
### hybrid reverse
![vim](assets/vim01.png)
[vim in tmux hybrid reverse](assets/vim-in-tmux-1.png)
### monokai
![vim](assets/vim02.png)
[vim in tmux monokai](assets/vim-in-tmux-2.png)
## mysql prompt
This changes also the mysql prompt. You will know where you and what DB you are using.
```bash
mysql -hlocalhost -ujblond -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3295
Server version: 10.3.29-MariaDB-0+deb10u1 Debian 10Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
([email protected]:(none))> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -ADatabase changed
([email protected]:mysql)> quit;
Bye
```