https://github.com/tecfu/.terminal
Config files for bash
https://github.com/tecfu/.terminal
Last synced: over 1 year ago
JSON representation
Config files for bash
- Host: GitHub
- URL: https://github.com/tecfu/.terminal
- Owner: tecfu
- Created: 2018-08-14T16:50:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-20T22:55:16.000Z (over 1 year ago)
- Last Synced: 2025-02-20T23:29:23.390Z (over 1 year ago)
- Language: Shell
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terminal Configuration Presets
## Scope
- Files
- 256colors2.pl
- Install 24 bit color support for virtual terminals
- .alacritty.yml
- Keymappings for alacritty
- .bashrc
- oh-my-bash config
- custom.kmap
- Remaps CAPS_LOCK to ESC in \*nix virtual terminal using `loadkeys`
- .bash_completion.sh
- Tmux autocompletion file
- .inputrc
- Custom key mappings
- .profile
- index for profile-\* files
- profile-aliases-private.sh
- Aliases that are specific to your machine or which you don't want public
- profile-aliases-public.sh
- Aliases that are useable on all your machines
- profile-autocompletion.sh
- General
- Bash
- Git
- Terraform
- Tmux
- Bash: Uses https://github.com/imomaliev/tmux-bash-completion
- profile-env.sh
- Environment variables
- profile-general.sh
- General configuration
- profile-vi-mode.sh
- Puts terminal in vi mode key mappings
- Adds some vim key mappings
## Installation
```
git clone https://github.com/tecfu/.terminal ~/.terminal
. ~/.terminal/INSTALL.sh
```
### OPTIONAL: Install Nerd Fonts
- Linx / Mac
```
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/JetBrainsMono.zip
unzip JetBrainsMono.zip
```
Then install `JetBrains Mono Regular Nerd Font Complete.ttf`
- Windows
https://docs.microsoft.com/en-us/windows/terminal/tutorials/powerline-setup
```
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser -RequiredVersion 2.0.412
Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck
```
Then use this font in your terminal DejaVu Sans Mono for Powerline
### OPTIONAL: Change keymap for virtual terminals
custom_keymap.kmap maps ESC to CAPS_LOCK
```bash
sudo loadkeys custom_keymap.kmap
echo "/usr/bin/loadkeys $HOME/custom_keymap.kmap" >> /etc/rc.local
```
See: https://superuser.com/questions/290115/how-to-change-console-keymap-in-linux
### OPTIONAL: Install 24 bit color support for virtual terminals
See:
https://github.com/tecfu/kmscon
### Checking your terminal for 256 colors
- Run the file ./256colors2.pl and check for tiled blocks that
represent 256 colors in the output.
### Troubleshooting
- Search for a the source of an alias:
```
ag 'alias vim' ~/.terminal/*
```