commit 9cf452a3c862adb46c56027f9805f55eca4d0008
parent 470e3278964e4f9fa248d03fe72764ddea54aedf
Author: GeaRSiX <gearsix@tuta.io>
Date: Thu, 2 Jul 2020 01:00:35 +0100
moved dotfiles to src/; added sfeedrc; added txtnish_config
Diffstat:
8 files changed, 138 insertions(+), 113 deletions(-)
diff --git a/bashrc b/bashrc
@@ -1,113 +0,0 @@
-#===============================#
-# GeaRSiX's bashrc
-# ~/.bashrc
-# 0 Variables
-# 1 Aliases
-# 1.A Misc
-# 1.B General
-# 1.D Programs
-# 1.E Config Files # DEPRECIATED - use github.com/gearsix/dotfm instead
-# 1.F Package Manager # DEPRECIATED - not using debian anymore
-# - stuff taken from default bashrc files
-#===============================#
-
-#-------------#
-# 0 VARIABLES #
-#-------------#
- txtReset=$'\e[0m'
- txtBold=$'\e[1m'
- colGreen=$'\e[0;32m'
- colBlue=$'\e[0;34m'
- colCyan=$'\e[0;36m'
- export PS1='\[${txtBold}\]\A \[${txtReset}${colGreen}\]\u\[${txtReset}\]@\[${colBlue}\]\h\[${txtReset}\][\[${colCyan}\]\w\[${txtReset}\]]: '
- export ark=~/shares/ark/
- export CC=musl-gcc
- export MANWIDTH=72
-
-#-----------#
-# 1 ALIASES #
-#-----------#
-#1.A MISC
- alias myip='curl https://ipinfo.io/ip'
- alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
- alias mapscii='telnet mapscii.me'
- alias parrot.live='curl parrot.live'
- # bunch of cmds i used when multi-monitering with my laptop
- #alias monitor-only='enable-monitor && disable-laptop'
- #alias laptop-only='enable-laptop && disable-monitor'
- #alias disable-monitor='xrandr --output eDP-1 --left-of DP-1 && xrandr --output DP-1 --off'
- #alias disable-laptop='xrandr --output DP-1 --right-of eDP-1 && xrandr --output eDP-1 --off'
- #alias enable-monitor='xrandr --output DP-1 --right-of eDP-1 --auto'
- #alias enable-laptop='xrandr --output eDP-1 --left-of DP-1 --auto'
-
-#1.C PROGRAM ALIASES
- alias qbit='qbittorrent'
-
-#1.D GENERAL
- # alias logout='pkill -KILL -u $USER'
- alias s!!='sudo !!'
- alias ls='ls --color=auto'
- alias ll='ls -lha --color=auto' # list format, human-readable
- alias lla='ls -lAh --color=auto' # show almost all, human-readable
- alias lsa='ls -Ah --color=auto' # list format, all, human-readable
- alias llt='ls -lAht --color=auto' # list format, show almost all, human-readable, sort by modification time (newest first)
- alias lls='ls -lAhS --color=auto' # list format, show almost all, human-readable, sort by file size (largest first)
- alias llu='ls -lAhu --color=auto' # list format, show almost all, human-readable, sort by user
- alias rm='rm -vri' # verbose, recursive, interactive
- alias cp='cp -vri' # verbose, recursive, interactive
- alias mv='mv -vi' # verbose, interactive
- alias mkd='mkdir -p' # make parent directories
- alias grep='grep --color=auto'
- alias ..='cd ../'
- alias snvim='sudo nvim'
-
-#1.E CONFIG FILES
-# i just use "dotfm edit" now (see github.com/gearsix/dotfm)
- #alias .bashrc='nvim ~/.bashrc && source ~/.bashrc'
- #alias .nvimrc='nvim ~/.config/nvim/init.vim'
-
-#1.F PACKAGE MANAGER ALIASES
-# save typing on an old debian machine
- #alias ainstall='sudo apt install'
- #alias aremove='sudo apt remove'
- #alias apurge='sudo apt purge'
- #alias asearch='apt search'
- #alias asearch-no='apt search --names-only'
- #alias aupdate='sudo apt update'
- #alias aupgrade='sudo apt upgrade'
- #alias auu='sudo apt update && sudo apt upgrade'
- #alias aar='sudo apt autoremove'
-
-#-----------------------------------------#
-# - STUFF TAKEN FROM DEFAULT BASHRC FILES #
-#-----------------------------------------#
-# below is taken from debian /usr/share/doc/bash/examples/startup-files
- # don't put duplicate lines or lines starting with space in the history.
- HISTCONTROL=ignoreboth
-
- # append to the history file, don't overwrite it
- shopt -s histappend
-
- # check the window size after each command (and if necessary) update the values of LINES and COLUMNS
- # shopt -s checkwinsize
-
- # if set, the pattern "**" used in a pathname expansion context will match all files and zero or more directories and subdirectories.
- shopt -s globstar
-
- # colored GCC warnings and errors
- export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
-
- # add an "alert" alias for long running commands
- # e.g.$ sleep 10; alert
- alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
-
- # enable programmable completion features
- # don't need to enable this if it's already enabled in /etc/bash.bashrc and /etc/profile sources /etc/bash.bashrc)
- if ! shopt -oq posix; then
- if [ -f /usr/share/bash-completion/bash_completion ]; then
- . /usr/share/bash-completion/bash_completion
- elif [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
- fi
- fi
-
diff --git a/src/bashrc b/src/bashrc
@@ -0,0 +1,116 @@
+#===============================#
+# GeaRSiX's bashrc
+# ~/.bashrc
+# 0 Variables
+# 1 Aliases
+# 1.A Misc
+# 1.B General
+# 1.D Programs
+# 1.E Config Files # DEPRECIATED - use github.com/gearsix/dotfm instead
+# 1.F Package Manager # DEPRECIATED - not using debian anymore
+# - stuff taken from default bashrc files
+#===============================#
+
+fuck-sysd.sh
+
+#-------------#
+# 0 VARIABLES #
+#-------------#
+ txtReset=$'\e[0m'
+ txtBold=$'\e[1m'
+ colGreen=$'\e[0;32m'
+ colBlue=$'\e[0;34m'
+ colCyan=$'\e[0;36m'
+ export PS1='\[${txtBold}\]\A \[${txtReset}${colGreen}\]\u\[${txtReset}\]@\[${colBlue}\]\h\[${txtReset}\][\[${colCyan}\]\w\[${txtReset}\]]: '
+ export ark=~/shares/ark/
+ export CC=musl-gcc
+ export MANWIDTH=72
+
+#-----------#
+# 1 ALIASES #
+#-----------#
+#1.A MISC
+ alias myip='curl https://ipinfo.io/ip'
+ alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
+ alias mapscii='telnet mapscii.me'
+ alias parrot.live='curl parrot.live'
+ # bunch of cmds i used when multi-monitering with my laptop
+ #alias monitor-only='enable-monitor && disable-laptop'
+ #alias laptop-only='enable-laptop && disable-monitor'
+ #alias disable-monitor='xrandr --output eDP-1 --left-of DP-1 && xrandr --output DP-1 --off'
+ #alias disable-laptop='xrandr --output DP-1 --right-of eDP-1 && xrandr --output eDP-1 --off'
+ #alias enable-monitor='xrandr --output DP-1 --right-of eDP-1 --auto'
+ #alias enable-laptop='xrandr --output eDP-1 --left-of DP-1 --auto'
+
+#1.C PROGRAM ALIASES
+ alias qbit='qbittorrent'
+ alias gitn='git --no-pager' # ??? if i want a pager i'll pipe it to less
+
+#1.D GENERAL
+ # alias logout='pkill -KILL -u $USER'
+ alias s!!='sudo !!'
+ alias ls='ls --color=auto'
+ alias ll='ls -lha --color=auto' # list format, human-readable
+ alias lla='ls -lAh --color=auto' # show almost all, human-readable
+ alias lsa='ls -Ah --color=auto' # list format, all, human-readable
+ alias llt='ls -lAht --color=auto' # list format, show almost all, human-readable, sort by modification time (newest first)
+ alias lls='ls -lAhS --color=auto' # list format, show almost all, human-readable, sort by file size (largest first)
+ alias llu='ls -lAhu --color=auto' # list format, show almost all, human-readable, sort by user
+ alias rm='rm -vri' # verbose, recursive, interactive
+ alias cp='cp -vri' # verbose, recursive, interactive
+ alias mv='mv -vi' # verbose, interactive
+ alias mkd='mkdir -p' # make parent directories
+ alias grep='grep --color=auto'
+ alias ..='cd ../'
+ alias snvim='sudo nvim'
+
+#1.E CONFIG FILES
+# i just use "dotfm edit" now (see github.com/gearsix/dotfm)
+ #alias .bashrc='nvim ~/.bashrc && source ~/.bashrc'
+ #alias .nvimrc='nvim ~/.config/nvim/init.vim'
+
+#1.F PACKAGE MANAGER ALIASES
+# save typing on an old debian machine
+ #alias ainstall='sudo apt install'
+ #alias aremove='sudo apt remove'
+ #alias apurge='sudo apt purge'
+ #alias asearch='apt search'
+ #alias asearch-no='apt search --names-only'
+ #alias aupdate='sudo apt update'
+ #alias aupgrade='sudo apt upgrade'
+ #alias auu='sudo apt update && sudo apt upgrade'
+ #alias aar='sudo apt autoremove'
+
+#-----------------------------------------#
+# - STUFF TAKEN FROM DEFAULT BASHRC FILES #
+#-----------------------------------------#
+# below is taken from debian /usr/share/doc/bash/examples/startup-files
+ # don't put duplicate lines or lines starting with space in the history.
+ HISTCONTROL=ignoreboth
+
+ # append to the history file, don't overwrite it
+ shopt -s histappend
+
+ # check the window size after each command (and if necessary) update the values of LINES and COLUMNS
+ # shopt -s checkwinsize
+
+ # if set, the pattern "**" used in a pathname expansion context will match all files and zero or more directories and subdirectories.
+ shopt -s globstar
+
+ # colored GCC warnings and errors
+ export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
+
+ # add an "alert" alias for long running commands
+ # e.g.$ sleep 10; alert
+ alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
+
+ # enable programmable completion features
+ # don't need to enable this if it's already enabled in /etc/bash.bashrc and /etc/profile sources /etc/bash.bashrc)
+ if ! shopt -oq posix; then
+ if [ -f /usr/share/bash-completion/bash_completion ]; then
+ . /usr/share/bash-completion/bash_completion
+ elif [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+ fi
+ fi
+
diff --git a/nvimrc b/src/nvimrc
diff --git a/src/sfeedrc b/src/sfeedrc
@@ -0,0 +1,18 @@
+# list of feeds to fetch:
+feeds() {
+ # feed <name> <feedurl> [basesiteurl] [encoding]
+ # dev
+ feed "gearsix-dotfiles" "https://git.gearsix.net/scripts/atom.xml"
+ feed "gearsix-scripts" "https://git.gearsix.net/scripts/atom.xml"
+ feed "gearsix-dotfm" "https://git.gearsix.net/dotfm/atom.xml"
+ feed "codemadness" "https://www.codemadness.nl/atom.xml"
+ # tech
+ feed "golang-youtube" "https://www.youtube.com/feeds/videos.xml?channel_id=UCO3LEtymiLrgvpb59cNsb8A"
+ feed "golang-releases" "https://github.com/golang/go/releases.atom"
+ feed "linux kernel" "https://www.kernel.org/feeds/kdist.xml" "https://www.kernel.org"
+ feed "openbsd" "https://old.reddit.com/r/openbsd/atom.rss"
+ # funny
+ feed "explosm" "http://feeds.feedburner.com/Explosm"
+ feed "xkcd" "https://xkcd.com/atom.xml" "https://xkcd.com"
+ # get youtube Atom feed: curl -s -L 'https://www.youtube.com/user/gocoding/videos' | sfeed_web | cut -f 1
+}
diff --git a/ssh_config b/src/ssh_config
diff --git a/tmux.conf b/src/tmux.conf
diff --git a/src/txtnish_config b/src/txtnish_config
@@ -0,0 +1,4 @@
+nick="gearsix"
+twturl="twtxt.gearsix.net"
+twtfile="/home/gearsix/shares/gearsix.net/twtxt"
+disclose_identity="0"
diff --git a/user-dirs.dirs b/src/user-dirs.dirs