Compare commits
3 commits
400aaa6c5d
...
1fe65aef7e
Author | SHA1 | Date | |
---|---|---|---|
1fe65aef7e | |||
e9c26e4ca9 | |||
129cc62ce6 |
10
alacritty/README.md
Normal file
10
alacritty/README.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Alacritty Setup
|
||||
[Alacritty](https://github.com/alacritty/alacritty) is the fastest terminal emulator in existence. Using the GPU for rendering enables optimizations that simply aren't possible without it. Alacritty currently supports macOS, Linux, BSD, and Windows.
|
||||
|
||||
## Requirements
|
||||
|
||||
- [AnonymousPro Powerline](https://github.com/powerline/fonts/tree/master/AnonymousPro) font.
|
||||
|
||||
## Configuration
|
||||
The configuration location that I use is: `$HOME/.config/alacritty/alacritty.yml`
|
||||
|
172
alacritty/alacritty.yml
Normal file
172
alacritty/alacritty.yml
Normal file
|
@ -0,0 +1,172 @@
|
|||
# Configuration for Alacritty, the GPU enhanced terminal emulator.
|
||||
env:
|
||||
# TERM variable
|
||||
# This value is used to set the `$TERM` environment variable for
|
||||
# each instance of Alacritty. If it is not present, alacritty will
|
||||
# check the local terminfo database and use `alacritty` if it is
|
||||
# available, otherwise `xterm-256color` is used.
|
||||
TERM: xterm-256color
|
||||
|
||||
window:
|
||||
# Window padding (changes require restart)
|
||||
#
|
||||
# Blank space added around the window in pixels. This padding is scaled
|
||||
# by DPI and the specified value is always added at both opposing sides.
|
||||
padding:
|
||||
x: 8
|
||||
y: 8
|
||||
|
||||
# Window decorations
|
||||
#
|
||||
# Values for `decorations`:
|
||||
# - full: Borders and title bar
|
||||
# - none: Neither borders nor title bar
|
||||
#
|
||||
decorations: full
|
||||
|
||||
# Startup Mode (changes require restart)
|
||||
#
|
||||
# Values for `startup_mode`:
|
||||
# - Windowed
|
||||
# - Maximized
|
||||
# - Fullscreen
|
||||
#
|
||||
startup_mode: Maximized
|
||||
|
||||
# Window title
|
||||
title: Alacritty
|
||||
|
||||
# Window class (Linux/BSD only):
|
||||
class:
|
||||
# Application instance name
|
||||
instance: Alacritty
|
||||
# General application class
|
||||
general: Alacritty
|
||||
|
||||
#scrolling:
|
||||
# Maximum number of lines in the scrollback buffer.
|
||||
# Specifying '0' will disable scrolling.
|
||||
history: 10000
|
||||
|
||||
# Scrolling distance multiplier.
|
||||
multiplier: 3
|
||||
|
||||
# Font configuration
|
||||
font:
|
||||
# Normal (roman) font face
|
||||
normal:
|
||||
family: Anonymous Pro for Powerline
|
||||
style: Regular
|
||||
|
||||
# Bold font face
|
||||
bold:
|
||||
family: Anonymous Pro for Powerline
|
||||
style: Bold
|
||||
|
||||
# Italic font face
|
||||
italic:
|
||||
family: Anonymous Pro for Powerline
|
||||
style: Italic
|
||||
|
||||
# Bold italic font face
|
||||
bold_italic:
|
||||
family: Anonymous Pro for Powerline
|
||||
style: Bold Italic
|
||||
|
||||
size: 10.0
|
||||
|
||||
# Colors (Dracula)
|
||||
colors:
|
||||
# Default colors
|
||||
primary:
|
||||
background: '0x282a36'
|
||||
foreground: '0xf8f8f2'
|
||||
|
||||
# Bright and dim foreground colors
|
||||
#
|
||||
# The dimmed foreground color is calculated automatically if it is not present.
|
||||
# If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
|
||||
# is `false`, the normal foreground color will be used.
|
||||
#dim_foreground: '0x9a9a9a'
|
||||
#bright_foreground: '0xffffff'
|
||||
|
||||
# Cursor colors
|
||||
#
|
||||
# Colors which should be used to draw the terminal cursor. If these are unset,
|
||||
# the cursor color will be the inverse of the cell color.
|
||||
cursor:
|
||||
text: '0x44475a'
|
||||
cursor: '0xf8f8f2'
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: '0x000000'
|
||||
red: '0xff5555'
|
||||
green: '0x50fa7b'
|
||||
yellow: '0xf1fa8c'
|
||||
blue: '0xbd93f9'
|
||||
magenta: '0xff79c6'
|
||||
cyan: '0x8be9fd'
|
||||
white: '0xbfbfbf'
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: '0x4d4d4d'
|
||||
red: '0xff6e67'
|
||||
green: '0x5af78e'
|
||||
yellow: '0xf4f99d'
|
||||
blue: '0xcaa9fa'
|
||||
magenta: '0xff92d0'
|
||||
cyan: '0x9aedfe'
|
||||
white: '0xe6e6e6'
|
||||
|
||||
# Dim colors
|
||||
#
|
||||
# If the dim colors are not set, they will be calculated automatically based
|
||||
# on the `normal` colors.
|
||||
dim:
|
||||
black: '0x14151b'
|
||||
red: '0xff2222'
|
||||
green: '0x1ef956'
|
||||
yellow: '0xebf85b'
|
||||
blue: '0x4d5b86'
|
||||
magenta: '0xff46b0'
|
||||
cyan: '0x59dffc'
|
||||
white: '0xe6e6d1'
|
||||
|
||||
# Indexed Colors
|
||||
#
|
||||
# The indexed colors include all colors from 16 to 256.
|
||||
# When these are not set, they're filled with sensible defaults.
|
||||
#
|
||||
# Example:
|
||||
# `- { index: 16, color: '0xff00ff' }`
|
||||
#
|
||||
indexed_colors: []
|
||||
|
||||
# Background opacity
|
||||
#
|
||||
# Window opacity as a floating point number from `0.0` to `1.0`.
|
||||
# The value `0.0` is completely transparent and `1.0` is opaque.
|
||||
background_opacity: 0.92
|
||||
|
||||
# Allow terminal applications to change Alacritty's window title.
|
||||
dynamic_title: true
|
||||
|
||||
cursor:
|
||||
# Cursor style
|
||||
#
|
||||
# Values for `style`:
|
||||
# - ▇ Block
|
||||
# - _ Underline
|
||||
# - | Beam
|
||||
style: Block
|
||||
|
||||
# If this is `true`, the cursor will be rendered as a hollow box when the
|
||||
# window is not focused.
|
||||
unfocused_hollow: true
|
||||
|
||||
mouse:
|
||||
# If this is `true`, the cursor is temporarily hidden when typing.
|
||||
hide_when_typing: true
|
||||
|
3
alacritty/update.sh
Executable file
3
alacritty/update.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
cp ./alacritty.yml $HOME/.config/alacritty/alacritty.yml
|
10
alias/README.md
Normal file
10
alias/README.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Alias
|
||||
This direcory holds alias configuration files.
|
||||
|
||||
To activate these aliases source the one you want in your shell like `$HOME/.alias/standard_alias`
|
||||
|
||||
## Requirements
|
||||
There are some aliases for programms that are not usually installed. If you want to use theme simply install theme. For more information take a look into the specific files!
|
||||
|
||||
## Configuration
|
||||
The configuration destionation is `$HOME/.alias/`
|
10
alias/better_standard_alias
Normal file
10
alias/better_standard_alias
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Requires to install different packages:
|
||||
# https://github.com/sharkdp/bat
|
||||
# https://github.com/ogham/exa
|
||||
|
||||
# bat => https://github.com/sharkdp/bat
|
||||
alias cat='bat'
|
||||
|
||||
# exa => https://github.com/ogham/exa
|
||||
alias ls='exa --color auto -l'
|
||||
alias ll='exa --color auto -l --all'
|
6
alias/git_alias
Normal file
6
alias/git_alias
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Requires git to be installed
|
||||
alias gitun="git reset HEAD"
|
||||
alias gitadd="git add -p"
|
||||
alias gitcheck="git checkout --"
|
||||
alias gitc="git commit"
|
||||
alias glg='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
|
9
alias/standard_alias
Normal file
9
alias/standard_alias
Normal file
|
@ -0,0 +1,9 @@
|
|||
alias ll='ls -l -h -A'
|
||||
alias ls='ls -G -l -h'
|
||||
alias cd..='cd ..'
|
||||
alias ..='cd ..'
|
||||
|
||||
alias cp="cp -i"
|
||||
alias df="df -h"
|
||||
alias free="free -h"
|
||||
|
6
alias/unsorted_alias
Normal file
6
alias/unsorted_alias
Normal file
|
@ -0,0 +1,6 @@
|
|||
# None specific aliases
|
||||
# Requires to install different packages:
|
||||
# https://github.com/charmbracelet/glow
|
||||
|
||||
# glow => https://github.com/charmbracelet/glow
|
||||
alias glow='glow -p'
|
5
alias/update.sh
Executable file
5
alias/update.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
DESTINATION=$HOME/.alias/
|
||||
|
||||
mkdir -p $DESTINATION
|
||||
cp *_alias $DESTINATION
|
69
zsh/.zshrc
Normal file
69
zsh/.zshrc
Normal file
|
@ -0,0 +1,69 @@
|
|||
autoload bashcompinit
|
||||
bashcompinit
|
||||
setopt nobeep # No beep
|
||||
setopt autocd # if only directory path is entered, cd there.
|
||||
|
||||
# Set env vars like path and locals
|
||||
source $HOME/.profile
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
|
||||
# Set name of the theme to load --- if set to "random", it will
|
||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||
ZSH_THEME="spaceship"
|
||||
|
||||
# Uncomment the following line to use case-sensitive completion.
|
||||
# CASE_SENSITIVE="true"
|
||||
|
||||
# Uncomment the following line to use hyphen-insensitive completion.
|
||||
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||
# HYPHEN_INSENSITIVE="true"
|
||||
|
||||
# Uncomment the following line to disable colors in ls.
|
||||
# DISABLE_LS_COLORS="true"
|
||||
|
||||
# Uncomment the following line to disable auto-setting terminal title.
|
||||
# DISABLE_AUTO_TITLE="true"
|
||||
|
||||
# Uncomment the following line to enable command auto-correction.
|
||||
# ENABLE_CORRECTION="true"
|
||||
|
||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||
# COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
# Uncomment the following line if you want to disable marking untracked files
|
||||
# under VCS as dirty. This makes repository status check for large repositories
|
||||
# much, much faster.
|
||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||
|
||||
# Uncomment the following line if you want to change the command execution time
|
||||
# stamp shown in the history command output.
|
||||
# You can set one of the optional three formats:
|
||||
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||
# or set a custom format using the strftime function format specifications,
|
||||
# see 'man strftime' for details.
|
||||
HIST_STAMPS="dd.mm.yyyy"
|
||||
|
||||
# Which plugins would you like to load?
|
||||
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
|
||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=(git docker docker-compose golang alias-finder gradle mvn)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# User configuration
|
||||
|
||||
# Preferred editor for local and remote sessions
|
||||
# if [[ -n $SSH_CONNECTION ]]; then
|
||||
# export EDITOR='vim'
|
||||
# else
|
||||
# export EDITOR='mvim'
|
||||
# fi
|
||||
|
||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||
source $HOME/.alias_profile
|
||||
|
20
zsh/README.md
Normal file
20
zsh/README.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# ZSH
|
||||
The zsh config...
|
||||
|
||||
## Requires
|
||||
|
||||
- zsh
|
||||
- [oh-my-zsh](https://ohmyz.sh/)
|
||||
- [spaceship theme](https://github.com/denysdovhan/spaceship-prompt)
|
||||
|
||||
## Installation
|
||||
|
||||
1. Install zsh
|
||||
2. Install oh-my-zsh
|
||||
3. From inside zsh with activated oh-my-zsh install the spaceship theme => [https://github.com/denysdovhan/spaceship-prompt#oh-my-zsh](https://github.com/denysdovhan/spaceship-prompt#oh-my-zsh)
|
||||
4. Run the `update.sh` script
|
||||
|
||||
After the oh-my-zsh installation you can delete `.zshrc.pre-oh-my-zsh`.
|
||||
## Configuration
|
||||
The `.zshrc` will be copied to `$HOME/.zshrc` the `update.sh` script will also create a `$HOME/.profile` file if not available for the env variables and `$HOME/.alias_porfile` for the custom alias config.
|
||||
|
7
zsh/update.sh
Executable file
7
zsh/update.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Create porfiles if needed
|
||||
touch $HOME/.profile
|
||||
touch $HOME/.alias_profile
|
||||
|
||||
cp ./.zshrc $HOME/.zshrc
|
Loading…
Reference in a new issue