oh my
This commit is contained in:
142
i3/.bashrc
Normal file
142
i3/.bashrc
Normal file
@@ -0,0 +1,142 @@
|
||||
#
|
||||
# ~/.bashrc
|
||||
#
|
||||
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
colors() {
|
||||
local fgc bgc vals seq0
|
||||
|
||||
printf "Color escapes are %s\n" '\e[${value};...;${value}m'
|
||||
printf "Values 30..37 are \e[33mforeground colors\e[m\n"
|
||||
printf "Values 40..47 are \e[43mbackground colors\e[m\n"
|
||||
printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n"
|
||||
|
||||
# foreground colors
|
||||
for fgc in {30..37}; do
|
||||
# background colors
|
||||
for bgc in {40..47}; do
|
||||
fgc=${fgc#37} # white
|
||||
bgc=${bgc#40} # black
|
||||
|
||||
vals="${fgc:+$fgc;}${bgc}"
|
||||
vals=${vals%%;}
|
||||
|
||||
seq0="${vals:+\e[${vals}m}"
|
||||
printf " %-9s" "${seq0:-(default)}"
|
||||
printf " ${seq0}TEXT\e[m"
|
||||
printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m"
|
||||
done
|
||||
echo; echo
|
||||
done
|
||||
}
|
||||
|
||||
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
|
||||
|
||||
# Change the window title of X terminals
|
||||
case ${TERM} in
|
||||
xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*)
|
||||
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"'
|
||||
;;
|
||||
screen*)
|
||||
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"'
|
||||
;;
|
||||
esac
|
||||
|
||||
use_color=true
|
||||
|
||||
# Set colorful PS1 only on colorful terminals.
|
||||
# dircolors --print-database uses its own built-in database
|
||||
# instead of using /etc/DIR_COLORS. Try to use the external file
|
||||
# first to take advantage of user additions. Use internal bash
|
||||
# globbing instead of external grep binary.
|
||||
safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM
|
||||
match_lhs=""
|
||||
[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
|
||||
[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
|
||||
[[ -z ${match_lhs} ]] \
|
||||
&& type -P dircolors >/dev/null \
|
||||
&& match_lhs=$(dircolors --print-database)
|
||||
[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
|
||||
|
||||
if ${use_color} ; then
|
||||
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
|
||||
if type -P dircolors >/dev/null ; then
|
||||
if [[ -f ~/.dir_colors ]] ; then
|
||||
eval $(dircolors -b ~/.dir_colors)
|
||||
elif [[ -f /etc/DIR_COLORS ]] ; then
|
||||
eval $(dircolors -b /etc/DIR_COLORS)
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] '
|
||||
else
|
||||
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
|
||||
fi
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
alias grep='grep --colour=auto'
|
||||
alias egrep='egrep --colour=auto'
|
||||
alias fgrep='fgrep --colour=auto'
|
||||
else
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
# show root@ when we don't have colors
|
||||
PS1='\u@\h \W \$ '
|
||||
else
|
||||
PS1='\u@\h \w \$ '
|
||||
fi
|
||||
fi
|
||||
|
||||
unset use_color safe_term match_lhs sh
|
||||
|
||||
#alias cp="cp -i" # confirm before overwriting something
|
||||
#alias df='df -h' # human-readable sizes
|
||||
#alias free='free -m' # show sizes in MB
|
||||
#alias np='nano -w PKGBUILD'
|
||||
#alias more=less
|
||||
|
||||
xhost +local:root > /dev/null 2>&1
|
||||
|
||||
# Bash won't get SIGWINCH if another process is in the foreground.
|
||||
# Enable checkwinsize so that bash will check the terminal size when
|
||||
# it regains control. #65623
|
||||
# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
|
||||
shopt -s checkwinsize
|
||||
|
||||
shopt -s expand_aliases
|
||||
|
||||
# export QT_SELECT=4
|
||||
|
||||
# Enable history appending instead of overwriting. #139609
|
||||
shopt -s histappend
|
||||
|
||||
#
|
||||
# # ex - archive extractor
|
||||
# # usage: ex <file>
|
||||
ex ()
|
||||
{
|
||||
if [ -f $1 ] ; then
|
||||
case $1 in
|
||||
*.tar.bz2) tar xjf $1 ;;
|
||||
*.tar.gz) tar xzf $1 ;;
|
||||
*.bz2) bunzip2 $1 ;;
|
||||
*.rar) unrar x $1 ;;
|
||||
*.gz) gunzip $1 ;;
|
||||
*.tar) tar xf $1 ;;
|
||||
*.tbz2) tar xjf $1 ;;
|
||||
*.tgz) tar xzf $1 ;;
|
||||
*.zip) unzip $1 ;;
|
||||
*.Z) uncompress $1;;
|
||||
*.7z) 7z x $1 ;;
|
||||
*) echo "'$1' cannot be extracted via ex()" ;;
|
||||
esac
|
||||
else
|
||||
echo "'$1' is not a valid file"
|
||||
fi
|
||||
}
|
||||
|
||||
[ -z "$TMUX" ] && { tmux attach || exec tmux new-session && exit;}
|
||||
|
||||
|
||||
export QSYS_ROOTDIR="/home/benk/.cache/yay/quartus-free/pkg/quartus-free-quartus/opt/intelFPGA/21.1/quartus/sopc_builder/bin"
|
||||
BIN
i3/.fonts/DejaVu Sans Mono for Powerline.ttf
Normal file
BIN
i3/.fonts/DejaVu Sans Mono for Powerline.ttf
Normal file
Binary file not shown.
1
i3/.fonts/fonts
Submodule
1
i3/.fonts/fonts
Submodule
Submodule i3/.fonts/fonts added at e80e3eba90
1
i3/.i3/i3-chrome-tab-dragging
Submodule
1
i3/.i3/i3-chrome-tab-dragging
Submodule
Submodule i3/.i3/i3-chrome-tab-dragging added at 88d810c1cb
1
i3/.nanorc
Normal file
1
i3/.nanorc
Normal file
@@ -0,0 +1 @@
|
||||
include /usr/share/nano-syntax-highlighting/*.nanorc
|
||||
1
i3/.oh-my-zsh
Submodule
1
i3/.oh-my-zsh
Submodule
Submodule i3/.oh-my-zsh added at d41ca84af1
38
i3/.ssh/github
Normal file
38
i3/.ssh/github
Normal file
@@ -0,0 +1,38 @@
|
||||
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
|
||||
NhAAAAAwEAAQAAAYEAnR2FjaLGRREKD0xiCn5QPmTXYMH+egM9+OcXZppf0MKn5V59sm/V
|
||||
LXAvqxOE6ojZ95lebjGQcFqJ6zxAzlCdudIjd6pWO2ck2CTdxnzbhYM+gIS/2LdEfz28Tv
|
||||
Pn2W6mrLrmZ0v5KD4BCaBLVMAxgm7qUcc6FUxZCs974hFOzB0AJDSqqE52ktosaHSycPIc
|
||||
ZqJ+nWMxcaywBaK0MO/pkGFPxQSKZ0fyyGt/OsxOsRB6odN2b5JfmtEPxIPR/xOGm2KCo2
|
||||
bzDWgoBMTaU0o+JgWqt1ZlKrYcjQG21XuLqngOPmLqusKdHdYpCiSmHKr8Kb9NHO+yon2m
|
||||
gj/nPlS9rpqU0uzS5FaPdMCSptqKEws88YhwbEAFAlRZT+MKSe5IMEjAz2zX6HhNumHZdO
|
||||
otfLclVhV5wY3vPTiwWB7NMEjb1e3NPW1+iZKfMr/YdqSetxzl6vv+qDqbit/PnAB8Mvtv
|
||||
+X3tQ4+a0bjqcVAA3J1ncHFnpnZChTgxl++nmys9AAAFiP7R05X+0dOVAAAAB3NzaC1yc2
|
||||
EAAAGBAJ0dhY2ixkURCg9MYgp+UD5k12DB/noDPfjnF2aaX9DCp+VefbJv1S1wL6sThOqI
|
||||
2feZXm4xkHBaies8QM5QnbnSI3eqVjtnJNgk3cZ824WDPoCEv9i3RH89vE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nVncM1
|
||||
HhjJF8+M/f8rjwgdL2jGzPxdLte5WfzfmcMM6e9ZSCZ60flz9diDb/qp88JrjvCFl8J2Nr
|
||||
6KVgm3TIymvMx+pSu6ROURD4fQ/6YolnOQ/ZdEJKXzVA286giZOEVe5yn8QaoT8mvlekBx
|
||||
/+1d/K+cefSaouAuEkrrYFD0v7GIPJ8hp6/6A6p9TMeVTIxgAAAMEAyMhz9XfAH4yOpx3O
|
||||
aWH52p1ABNqfW7nX+mNZu2l/kaNoZ9feQE2KiNZiKWmSijjVAoOOG8CsyZAZHrNZ8ydXVI
|
||||
c4dvvIhLKaiToY5LjLQK1Yc9qAzQrS7G82rf2Wo+a940MSG9E1zHrBWtpUDtKX4Jpz8SlI
|
||||
w1KE1QtpeEeOahE0u0bVw1M/SABNuneP1FkRaLgT3Gbri8fl3YZRKiivbGMK5n1drbeNCp
|
||||
T3tAdX4H03ygRxUo7dCzUmfoLCyvj3AAAAwQDIUsVPpR0/JxMS3s93qJSjdkQLtOMrXpCz
|
||||
29w3jSZitWwRpwogdGQMD8F5pdQzEfRVGHcHtf8OVGuht3ITunFNRtw964gok5QtFQ2d+O
|
||||
GMueVhtOBXkP/wIr83MlAuv/AQVAScNsPmwrSbRLYiezKVeeZ1jvdajXGt3IWR2wMELaVx
|
||||
o4Gz0BckZ6lZfEOimodfIaEujTfY+vasi5YqOddRTH+AowugnUOaGtcKPqOi7sRNlENWmq
|
||||
iwXrnepbkYxGsAAAANZ2l0aHViLWJlbmt5ZAECAwQFBg==
|
||||
-----END OPENSSH PRIVATE KEY-----
|
||||
1
i3/.ssh/github.pub
Normal file
1
i3/.ssh/github.pub
Normal file
@@ -0,0 +1 @@
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCdHYWNosZFEQoPTGIKflA+ZNdgwf56Az345xdmml/QwqflXn2yb9UtcC+rE4TqiNn3mV5uMZBwWonrPEDOUJ250iN3qlY7ZyTYJN3GfNuFgz6AhL/Yt0R/PbxO8+fZbqasuuZnS/koPgEJoEtUwDGCbupRxzoVTFkKz3viEU7MHQAkNKqoTnaS2ixodLJw8hxmon6dYzFxrLAForQw7+mQYU/FBIpnR/LIa386zE6xEHqh03Zvkl+a0Q/Eg9H/E4abYoKjZvMNaCgExNpTSj4mBaq3VmUqthyNAbbVe4uqeA4+Yuq6wp0d1ikKJKYcqvwpv00c77KifaaCP+c+VL2umpTS7NLkVo90wJKm2ooTCzzxiHBsQAUCVFlP4wpJ7kgwSMDPbNfoeE26Ydl06i18tyVWFXnBje89OLBYHs0wSNvV7c09bX6Jkp8yv9h2pJ63HOXq+/6oOpuK38+cAHwy+2/5fe1Dj5rRuOpxUADcnWdwcWemdkKFODGX76ebKz0= github-benkyd
|
||||
2
i3/.ssh/known_hosts
Normal file
2
i3/.ssh/known_hosts
Normal file
@@ -0,0 +1,2 @@
|
||||
165.22.114.213 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDi2XOGu3V1Ux6MOkXJjdmkPVJ+hxCZU0MWG2cpVKVuW
|
||||
github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
|
||||
107
i3/.zshrc
Normal file
107
i3/.zshrc
Normal file
@@ -0,0 +1,107 @@
|
||||
# If you come from bash you might have to change your $PATH.
|
||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||
|
||||
# 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
|
||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||
ZSH_THEME="robbyrussell"
|
||||
|
||||
# Set list of themes to pick from when loading at random
|
||||
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||
# a theme from this variable instead of looking in $ZSH/themes/
|
||||
# If set to an empty array, this variable will have no effect.
|
||||
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
||||
|
||||
# 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 one of the following lines to change the auto-update behavior
|
||||
# zstyle ':omz:update' mode disabled # disable automatic updates
|
||||
# zstyle ':omz:update' mode auto # update automatically without asking
|
||||
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
|
||||
|
||||
# Uncomment the following line to change how often to auto-update (in days).
|
||||
# zstyle ':omz:update' frequency 13
|
||||
|
||||
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||
# DISABLE_MAGIC_FUNCTIONS="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.
|
||||
# You can also set it to another string to have that shown instead of the default red dots.
|
||||
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
|
||||
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
|
||||
# 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="mm/dd/yyyy"
|
||||
|
||||
# Would you like to use another custom folder than $ZSH/custom?
|
||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||
|
||||
# Which plugins would you like to load?
|
||||
# Standard plugins can be found in $ZSH/plugins/
|
||||
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=(git)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# User configuration
|
||||
|
||||
# export MANPATH="/usr/local/man:$MANPATH"
|
||||
|
||||
# You may need to manually set your language environment
|
||||
# export LANG=en_US.UTF-8
|
||||
|
||||
# Preferred editor for local and remote sessions
|
||||
# if [[ -n $SSH_CONNECTION ]]; then
|
||||
# export EDITOR='vim'
|
||||
# else
|
||||
# export EDITOR='mvim'
|
||||
# fi
|
||||
|
||||
# Compilation flags
|
||||
# export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||
# For a full list of active aliases, run `alias`.
|
||||
#
|
||||
# Example aliases
|
||||
# alias zshconfig="mate ~/.zshrc"
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
|
||||
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
||||
exec tmux
|
||||
fi
|
||||
|
||||
export QSYS_ROOTDIR="/home/benk/.cache/yay/quartus-free/pkg/quartus-free-quartus/opt/intelFPGA/21.1/quartus/sopc_builder/bin"
|
||||
Reference in New Issue
Block a user