diff options
Initial Commit
-rw-r--r-- | .bash_logout | 2 | ||||
-rw-r--r-- | .bash_profile | 9 | ||||
-rw-r--r-- | .bashrc | 14 | ||||
-rw-r--r-- | .config/gdb/gdbinit | 0 | ||||
-rw-r--r-- | .config/git/ignore | 39 | ||||
-rw-r--r-- | .config/htop/htoprc | 61 | ||||
-rw-r--r-- | .exrc | 5 | ||||
-rw-r--r-- | .inputrc | 1 | ||||
-rw-r--r-- | .lesskey | 3 | ||||
-rwxr-xr-x | .local/bin/dedup | 3 | ||||
-rwxr-xr-x | .local/bin/dotfiles | 3 | ||||
-rwxr-xr-x | .local/bin/dotman | 6 | ||||
-rwxr-xr-x | .local/bin/e | 3 | ||||
-rwxr-xr-x | .local/bin/http-dir | 29 | ||||
-rwxr-xr-x | .local/bin/p | 3 | ||||
-rwxr-xr-x | .local/bin/sh-prompt | 3 | ||||
-rwxr-xr-x | .local/bin/trim | 4 | ||||
-rwxr-xr-x | .local/bin/v | 4 | ||||
-rw-r--r-- | .local/share/flatpak/overrides/org.mozilla.firefox | 5 | ||||
-rw-r--r-- | .local/share/meson/cross/mingw-32.txt | 30 | ||||
-rw-r--r-- | .local/share/meson/cross/mingw-64.txt | 30 | ||||
-rw-r--r-- | .local/share/meson/native/clang.txt | 4 | ||||
-rw-r--r-- | .local/share/meson/native/gcc.txt | 4 | ||||
-rw-r--r-- | .local/share/meson/native/llvm.txt | 7 | ||||
-rw-r--r-- | .profile | 10 | ||||
-rw-r--r-- | .shrc | 59 | ||||
-rw-r--r-- | .vimrc | 39 |
27 files changed, 380 insertions, 0 deletions
diff --git a/.bash_logout b/.bash_logout new file mode 100644 index 0000000..af7c6fd --- /dev/null +++ b/.bash_logout @@ -0,0 +1,2 @@ +# ~/.bash_logout + diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..82ea3c8 --- /dev/null +++ b/.bash_profile @@ -0,0 +1,9 @@ +#!/bin/bash -l + +for i in ~/.profile ~/.bashrc +do + if test -f "$i" + then + . "$i" + fi +done @@ -0,0 +1,14 @@ +#!/bin/bash -i + +case $- in + *i*) ;; + + *) + return + ;; +esac + +if test -f ~/.shrc +then + . ~/.shrc +fi diff --git a/.config/gdb/gdbinit b/.config/gdb/gdbinit new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.config/gdb/gdbinit diff --git a/.config/git/ignore b/.config/git/ignore new file mode 100644 index 0000000..818007b --- /dev/null +++ b/.config/git/ignore @@ -0,0 +1,39 @@ +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs + +#vim +# Swap +[._]*.s[a-v][a-z] +!*.svg # comment out if you don't need vector files +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] + +# Session +Session.vim +Sessionx.vim + +# Temporary +.netrwhist +*~ +# Auto-generated tag files +tags +# Persistent undo +[._]*.un~ + +#Kate +# Swap Files # +.*.kate-swp +.swp.* diff --git a/.config/htop/htoprc b/.config/htop/htoprc new file mode 100644 index 0000000..abebfe6 --- /dev/null +++ b/.config/htop/htoprc @@ -0,0 +1,61 @@ +# Beware! This file is rewritten by htop when settings are changed in the interface. +# The parser is also very primitive, and not human-friendly. +htop_version=3.2.1 +config_reader_min_version=3 +fields=0 48 17 18 38 39 40 2 46 47 49 1 +hide_kernel_threads=1 +hide_userland_threads=1 +shadow_other_users=0 +show_thread_names=0 +show_program_path=1 +highlight_base_name=0 +highlight_deleted_exe=1 +highlight_megabytes=1 +highlight_threads=1 +highlight_changes=0 +highlight_changes_delay_secs=5 +find_comm_in_cmdline=1 +strip_exe_from_cmdline=1 +show_merged_command=0 +header_margin=1 +screen_tabs=1 +detailed_cpu_time=0 +cpu_count_from_one=0 +show_cpu_usage=1 +show_cpu_frequency=0 +show_cpu_temperature=0 +degree_fahrenheit=0 +update_process_names=0 +account_guest_in_cpu_meter=0 +color_scheme=0 +enable_mouse=1 +delay=15 +hide_function_bar=0 +header_layout=two_50_50 +column_meters_0=LeftCPUs Memory Swap +column_meter_modes_0=1 1 1 +column_meters_1=RightCPUs Tasks LoadAverage Uptime +column_meter_modes_1=1 2 2 2 +tree_view=1 +sort_key=47 +tree_sort_key=47 +sort_direction=-1 +tree_sort_direction=-1 +tree_view_always_by_pid=0 +all_branches_collapsed=0 +screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command +.sort_key=PERCENT_MEM +.tree_sort_key=PERCENT_MEM +.tree_view=1 +.tree_view_always_by_pid=0 +.sort_direction=-1 +.tree_sort_direction=-1 +.all_branches_collapsed=0 +screen:I/O=PID USER IO_PRIORITY IO_RATE IO_READ_RATE IO_WRITE_RATE +.sort_key=IO_RATE +.tree_sort_key=PID +.tree_view=0 +.tree_view_always_by_pid=0 +.sort_direction=-1 +.tree_sort_direction=1 +.all_branches_collapsed=0 @@ -0,0 +1,5 @@ +set number +set autoindent +set showmatch +set showmode +set errorbells diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..b2cc9d6 --- /dev/null +++ b/.inputrc @@ -0,0 +1 @@ +set editing-mode vi diff --git a/.lesskey b/.lesskey new file mode 100644 index 0000000..cd5e2f8 --- /dev/null +++ b/.lesskey @@ -0,0 +1,3 @@ +#env +LESS=-MRF~ +LESSCHARSET=UTF-8 diff --git a/.local/bin/dedup b/.local/bin/dedup new file mode 100755 index 0000000..912cb95 --- /dev/null +++ b/.local/bin/dedup @@ -0,0 +1,3 @@ +#!/usr/bin/awk -f + +!a[$0]++ diff --git a/.local/bin/dotfiles b/.local/bin/dotfiles new file mode 100755 index 0000000..ae2bf64 --- /dev/null +++ b/.local/bin/dotfiles @@ -0,0 +1,3 @@ +#!/bin/sh + +exec git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME" "$@" diff --git a/.local/bin/dotman b/.local/bin/dotman new file mode 100755 index 0000000..21e2fb9 --- /dev/null +++ b/.local/bin/dotman @@ -0,0 +1,6 @@ +#!/bin/sh + +export GIT_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/dotman/" +export GIT_WORK_TREE="$HOME" + +exec git "$@" diff --git a/.local/bin/e b/.local/bin/e new file mode 100755 index 0000000..e341837 --- /dev/null +++ b/.local/bin/e @@ -0,0 +1,3 @@ +#!/bin/sh -- + +exec "${EDITOR:-ed}" "$@" diff --git a/.local/bin/http-dir b/.local/bin/http-dir new file mode 100755 index 0000000..a1dd19d --- /dev/null +++ b/.local/bin/http-dir @@ -0,0 +1,29 @@ +#!/usr/bin/env python3 + +import argparse +import http.server +import os +import sys + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument('--bind', '-b', metavar='ADDRESS',default='', help='specify alternate bind address (default: all interfaces)') + parser.add_argument('--directory', '-d', default=os.getcwd(), help='specify alternate directory (default: current directory)') + parser.add_argument('port', action='store', default=8000, type=int, + nargs='?', help='specify alternate port (default: 8000)') + args = parser.parse_args() + + class app(http.server.SimpleHTTPRequestHandler): + def __init__(self, request, client_address, server): + super().__init__(request, client_address, server, directory=args.directory) + + with http.server.ThreadingHTTPServer((args.bind, args.port), app) as httpd: + try: + httpd.serve_forever() + except KeyboardInterrupt: + sys.exit() + + + +if __name__ == '__main__': + main() diff --git a/.local/bin/p b/.local/bin/p new file mode 100755 index 0000000..3b2aef1 --- /dev/null +++ b/.local/bin/p @@ -0,0 +1,3 @@ +#!/bin/sh -- + +exec "${PAGER:-less}" "$@" diff --git a/.local/bin/sh-prompt b/.local/bin/sh-prompt new file mode 100755 index 0000000..ebc1057 --- /dev/null +++ b/.local/bin/sh-prompt @@ -0,0 +1,3 @@ +#!/bin/sh -- + +printf "%u %s@%s %s $ " "$1" "$(id -un)" "$(uname -n)" "$(pwd|sed 's|'"$HOME"'|~|g')" diff --git a/.local/bin/trim b/.local/bin/trim new file mode 100755 index 0000000..d55063b --- /dev/null +++ b/.local/bin/trim @@ -0,0 +1,4 @@ +#!/usr/bin/sed -f + +s/^[[:space:]]*// +s/[[:space:]]*$// diff --git a/.local/bin/v b/.local/bin/v new file mode 100755 index 0000000..9a5f35f --- /dev/null +++ b/.local/bin/v @@ -0,0 +1,4 @@ +#!/bin/sh -- + +"${VISUAL:-${EDITOR:-vi}}" "$@" + diff --git a/.local/share/flatpak/overrides/org.mozilla.firefox b/.local/share/flatpak/overrides/org.mozilla.firefox new file mode 100644 index 0000000..3f5fa93 --- /dev/null +++ b/.local/share/flatpak/overrides/org.mozilla.firefox @@ -0,0 +1,5 @@ +[Context] +sockets=fallback-x11;!x11 + +[Environment] +MOZ_ENABLE_WAYLAND=1 diff --git a/.local/share/meson/cross/mingw-32.txt b/.local/share/meson/cross/mingw-32.txt new file mode 100644 index 0000000..e43ae71 --- /dev/null +++ b/.local/share/meson/cross/mingw-32.txt @@ -0,0 +1,30 @@ +[binaries] +c='i686-w64-mingw32-gcc' +cpp='i686-w64-mingw32-g++' +objc='i686-w64-mingw32-gcc' +ar='i686-w64-mingw32-ar' +strip='i686-w64-mingw32-strip' +pkgconfig='i686-w64-mingw32-pkg-config' +windres='i686-w64-mingw32-windres' +exe_wrapper='wine64' +cmake='cmake' + +[properties] +# Directory that contains 'bin', 'lib', etc +root='/usr/i686-w64-mingw32' +# Directory that contains 'bin', 'lib', etc for the toolchain and system libraries +sys_root='/usr/i686-w64-mingw32/sys-root/mingw' + +[host_machine] +system='windows' +cpu_family='x86' +cpu='x86' +endian='little' + +[cmake] + +CMAKE_BUILD_WITH_INSTALL_RPATH='ON' +CMAKE_FIND_ROOT_PATH_MODE_PROGRAM='NEVER' +CMAKE_FIND_ROOT_PATH_MODE_LIBRARY='ONLY' +CMAKE_FIND_ROOT_PATH_MODE_INCLUDE='ONLY' +CMAKE_FIND_ROOT_PATH_MODE_PACKAGE='ONLY' diff --git a/.local/share/meson/cross/mingw-64.txt b/.local/share/meson/cross/mingw-64.txt new file mode 100644 index 0000000..458d8ef --- /dev/null +++ b/.local/share/meson/cross/mingw-64.txt @@ -0,0 +1,30 @@ +[binaries] +c='x86_64-w64-mingw32-gcc' +cpp='x86_64-w64-mingw32-g++' +objc='x86_64-w64-mingw32-gcc' +ar='x86_64-w64-mingw32-ar' +strip='x86_64-w64-mingw32-strip' +pkgconfig='x86_64-w64-mingw32-pkg-config' +windres='x86_64-w64-mingw32-windres' +exe_wrapper='wine64' +cmake='cmake' + +[properties] +# Directory that contains 'bin', 'lib', etc +root='/usr/x86_64-w64-mingw32' +# Directory that contains 'bin', 'lib', etc for the toolchain and system libraries +sys_root='/usr/x86_64-w64-mingw32/sys-root/mingw' + +[host_machine] +system='windows' +cpu_family='x86_64' +cpu='x86_64' +endian='little' + +[cmake] + +CMAKE_BUILD_WITH_INSTALL_RPATH='ON' +CMAKE_FIND_ROOT_PATH_MODE_PROGRAM='NEVER' +CMAKE_FIND_ROOT_PATH_MODE_LIBRARY='ONLY' +CMAKE_FIND_ROOT_PATH_MODE_INCLUDE='ONLY' +CMAKE_FIND_ROOT_PATH_MODE_PACKAGE='ONLY' diff --git a/.local/share/meson/native/clang.txt b/.local/share/meson/native/clang.txt new file mode 100644 index 0000000..772dcc5 --- /dev/null +++ b/.local/share/meson/native/clang.txt @@ -0,0 +1,4 @@ +[binaries] +c = 'clang' +cpp = 'clang++' + diff --git a/.local/share/meson/native/gcc.txt b/.local/share/meson/native/gcc.txt new file mode 100644 index 0000000..f9d73f2 --- /dev/null +++ b/.local/share/meson/native/gcc.txt @@ -0,0 +1,4 @@ +[binaries] +c = 'gcc' +cpp = 'g++' + diff --git a/.local/share/meson/native/llvm.txt b/.local/share/meson/native/llvm.txt new file mode 100644 index 0000000..1390be4 --- /dev/null +++ b/.local/share/meson/native/llvm.txt @@ -0,0 +1,7 @@ +[binaries] +c_ld = 'lld' +cpp_ldd = 'lld' +ar = 'llvm-ar' +strip = 'llvm-strip' + + diff --git a/.profile b/.profile new file mode 100644 index 0000000..660cbf6 --- /dev/null +++ b/.profile @@ -0,0 +1,10 @@ +#!/bin/sh -l + +export EDITOR=ex +export VISUAL=vim +export PAGER=less + +PATH="$HOME/.local/bin:$HOME/.local/opt/flutter/bin:$HOME/.local/opt/android-studio/bin:$PATH" + +export ENV="$HOME/.shrc" + @@ -0,0 +1,59 @@ +#!/bin/sh -i + +case $- in + *i*) ;; + + *) + return + ;; +esac + +set -o vi +set -o nounset +set -o noclobber +set -o ignoreeof + +PS1='$(sh-prompt $?)' +PS2="> " +PS3='? ' +PS4='+ ' + +HISTSIZE=65535 +HISTFILE=/dev/null + +du(){ + set -- -k "$@" + command du "$@" +} + +df(){ + set -- -k "$@" + command df "$@" +} + +egrep() { + set -- -E "$@" + grep "$@" +} + +fgrep() { + set -- -F "$@" + grep "$@" +} + +ls(){ + set -- -Fk "$@" + command ls "$@" +} + +venvon(){ + . "${1:-venv}/bin/activate" +} + +if test -n ${TTY-} && test -t 0 +then + TTY=$(tty) + export TTY + export GPG_TTY=$TTY +fi + @@ -0,0 +1,39 @@ +set all& + +set number +set autoindent +set showmatch +set showmode +set errorbells +set belloff= +set title + +set swapfile +set directory^=~/.vim/swap// +set writebackup +set nobackup +set backupcopy=auto +if has("patch-8.1.0251") + set backupdir^=~/.vim/backup// +end +set undofile +set undodir^=~/.vim/undo// + +if has('autocmd') + filetype plugin indent on +endif + +if has('syntax') && (&t_Co > 2 || has("gui_running")) + syntax enable + if has('extra_search') + set hlsearch + set incsearch + endif + colorscheme industry +end + +if &t_Co > 16 + set termguicolors + let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" + let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" +end |