Initial commit
This commit is contained in:
commit
2f798d64af
|
@ -0,0 +1,28 @@
|
||||||
|
#ls
|
||||||
|
alias ls="ls --color=auto"
|
||||||
|
|
||||||
|
alias ..="cd .."
|
||||||
|
alias ...="cd ../.."
|
||||||
|
alias ....="cd ../../.."
|
||||||
|
alias .....="cd ../../../.."
|
||||||
|
export EDITOR="/usr/bin/nvim"
|
||||||
|
|
||||||
|
# trash bin
|
||||||
|
alias trash='mkdir -p "$HOME/.trash" && mv -b -t "$HOME/.trash"'
|
||||||
|
alias cleartrash='rm -fv "$HOME/.trash/*"'
|
||||||
|
|
||||||
|
# weather forecast
|
||||||
|
alias forecast="curl -s wttr.in | head -n -1"
|
||||||
|
|
||||||
|
# improved reset and clear
|
||||||
|
alias reset="tput reset"
|
||||||
|
alias clear="tput reset"
|
||||||
|
|
||||||
|
# get ip alias
|
||||||
|
alias getip="curl -s https://ipecho.net/plain | xargs echo"
|
||||||
|
|
||||||
|
# better du
|
||||||
|
alias du="du -h"
|
||||||
|
|
||||||
|
# vim -> nvim alias
|
||||||
|
alias vim="nvim"
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/sh
|
||||||
|
mydir=$(dirname "$0")
|
||||||
|
mydir=$(realpath "$mydir")
|
||||||
|
|
||||||
|
if [ ! "$mydir" = "$HOME/dotfiles" ]; then
|
||||||
|
mv "$mydir" "$HOME/dotfiles"
|
||||||
|
mydir="$HOME/dotfiles"
|
||||||
|
fi
|
||||||
|
|
||||||
|
install() {
|
||||||
|
ln "$mydir/$1" "$HOME/.$1" -f
|
||||||
|
}
|
||||||
|
|
||||||
|
installto() {
|
||||||
|
ln "$mydir/$1" "$2" -f
|
||||||
|
}
|
||||||
|
|
||||||
|
install tmux.conf
|
||||||
|
install zshrc
|
|
@ -0,0 +1,79 @@
|
||||||
|
# FIXES
|
||||||
|
|
||||||
|
####################
|
||||||
|
### KEY BINDINGS ###
|
||||||
|
####################
|
||||||
|
|
||||||
|
# remap prefix from 'C-b' to 'C-a'
|
||||||
|
unbind C-b
|
||||||
|
set-option -g prefix C-a
|
||||||
|
bind-key C-a send-prefix
|
||||||
|
|
||||||
|
# split panes using | and -
|
||||||
|
bind | split-window -h
|
||||||
|
bind - split-window -v
|
||||||
|
unbind '"'
|
||||||
|
unbind %
|
||||||
|
|
||||||
|
# switch panes using Alt-arrow without prefix
|
||||||
|
bind -n M-Left select-pane -L
|
||||||
|
bind -n M-Right select-pane -R
|
||||||
|
bind -n M-Up select-pane -U
|
||||||
|
bind -n M-Down select-pane -D
|
||||||
|
|
||||||
|
# don't rename windows automatically
|
||||||
|
set-option -g allow-rename off
|
||||||
|
|
||||||
|
# reload config file (change file location to your the tmux.conf you want to use)
|
||||||
|
bind r source-file ~/.tmux.conf
|
||||||
|
|
||||||
|
# disable killing confirmation
|
||||||
|
bind-key & kill-window
|
||||||
|
unbind x
|
||||||
|
bind-key * kill-pane
|
||||||
|
|
||||||
|
######################
|
||||||
|
### DESIGN CHANGES ###
|
||||||
|
######################
|
||||||
|
|
||||||
|
# makes promt colorful
|
||||||
|
set -g default-terminal "screen-256color"
|
||||||
|
|
||||||
|
# loud or quiet?
|
||||||
|
set -g visual-activity off
|
||||||
|
set -g visual-bell off
|
||||||
|
set -g visual-silence off
|
||||||
|
setw -g monitor-activity off
|
||||||
|
set -g bell-action none
|
||||||
|
|
||||||
|
# modes
|
||||||
|
setw -g clock-mode-colour colour5
|
||||||
|
setw -g mode-style 'fg=colour1 bg=colour18 bold'
|
||||||
|
|
||||||
|
# panes
|
||||||
|
set -g pane-border-style 'fg=colour19 bg=colour0'
|
||||||
|
set -g pane-active-border-style 'bg=colour0 fg=colour9'
|
||||||
|
|
||||||
|
# statusbar
|
||||||
|
set -g status-position bottom
|
||||||
|
set -g status-justify left
|
||||||
|
set -g status-style 'bg=colour234 fg=colour255'
|
||||||
|
set -g status-left '#[fg=colour255,bg=colour234] '
|
||||||
|
set -g status-right '#[fg=colour255,bg=colour27] %d/%m %H:%M '
|
||||||
|
set -g status-right-length 50
|
||||||
|
set -g status-left-length 20
|
||||||
|
|
||||||
|
setw -g window-status-current-format '#[bg=colour27,fg=colour184] #I#[fg=colour255]-#W#F '
|
||||||
|
|
||||||
|
setw -g window-status-format '#[bg=colour237,fg=colour184] #I#[fg=colour255]-#W#F '
|
||||||
|
|
||||||
|
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
|
||||||
|
|
||||||
|
# messages
|
||||||
|
set -g message-style 'fg=colour232 bg=colour12 bold'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# SET DEFAULT SHELL:
|
||||||
|
set-option -g default-shell $SHELL
|
|
@ -0,0 +1,35 @@
|
||||||
|
# The following lines were added by compinstall
|
||||||
|
|
||||||
|
zstyle ':completion:*' completer _complete _ignored
|
||||||
|
zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'm:{[:lower:]}={[:upper:]}'
|
||||||
|
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit
|
||||||
|
# End of lines added by compinstall
|
||||||
|
# Lines configured by zsh-newuser-install
|
||||||
|
HISTFILE=~/.histfile
|
||||||
|
HISTSIZE=1000
|
||||||
|
SAVEHIST=1000
|
||||||
|
setopt autocd
|
||||||
|
unsetopt beep
|
||||||
|
bindkey -v
|
||||||
|
#autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
|
||||||
|
|
||||||
|
autoload -U history-search-end
|
||||||
|
zle -N history-beginning-search-backward-end history-search-end
|
||||||
|
zle -N history-beginning-search-forward-end history-search-end
|
||||||
|
bindkey "^[[A" history-beginning-search-backward-end
|
||||||
|
bindkey "^[[B" history-beginning-search-forward-end
|
||||||
|
|
||||||
|
|
||||||
|
export PROMPT='%B%F{63}[%F{68}%n@%m %F{white}%~%F{63}]$%b%f '
|
||||||
|
|
||||||
|
# aliases:
|
||||||
|
source "~/dotfiles/aliases"
|
||||||
|
|
||||||
|
# reload with .
|
||||||
|
alias .="source ~/.zshrc"
|
||||||
|
|
||||||
|
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
|
||||||
|
exec startx
|
||||||
|
fi
|
Loading…
Reference in New Issue