all repos — dotfiles @ 6e350745834d206dbb0a139f5bf70cfea9476981

my *nix dotfiles

Remove unused shell dirs
Anirudh Oppiliappan x@icyphox.sh
Wed, 11 Aug 2021 17:14:43 +0530
commit

6e350745834d206dbb0a139f5bf70cfea9476981

parent

8cfa10f4d00b31be5057e20fded9b26eaa34acd1

27 files changed, 0 insertions(+), 308 deletions(-)

jump to
M .gitignore.gitignore

@@ -1,16 +1,1 @@

-config/fish/completions/kubectl.fish -config/fish/completions/fisher.fish -config/fish/functions/__z.fish -config/fish/functions/__z_add.fish -config/fish/functions/__z_clean.fish -config/fish/functions/__z_complete.fish -config/fish/functions/fisher.fish -config/fish/completions/helm.fish -config/fish/completions/nvm.fish -config/fish/functions/_nvm_index_update.fish -config/fish/functions/_nvm_list.fish -config/fish/functions/_nvm_version_activate.fish -config/fish/functions/_nvm_version_deactivate.fish -config/fish/functions/nvm.fish - prompt/prompt
D config/compton.conf

@@ -1,24 +0,0 @@

-backend = "glx"; -glx-no-stencil = true; -glx-copy-from-front = false; - -# rounded corners -# corner-radius = 5; - -shadow = true; -shadow-radius = 40; -shadow-opacity = 0.10; -shadow-offset-x = -20; -shadow-offset-y = -25; - -corner-radius = 10; - - -shadow-exclude = [ - "window_type = 'dock'", - "window_type = 'desktop'", - "window_type = 'dnd'", - "window_type *= 'menu'", - "window_type = 'utility'", -] -shadow-ignore-shaped = false;
D config/fish/completions/n.fish

@@ -1,9 +0,0 @@

-complete -c n -f -r - -set -l paths "" - -for f in $MARKPATH/* - set -a paths (basename $f) -end - -complete -c n -a "$paths"
D config/fish/config.fish

@@ -1,19 +0,0 @@

-set fish_greeting - -set -gx PATH ~/bin ~/.local/bin ~/leet/Nim/bin ~/.nimble/bin \ -/usr/local/bin /usr/bin /bin /sbin /usr/sbin /usr/X11R6/bin \ -~/go/bin - -set -gx EDITOR nvim -set -gx BROWSER firefox -set -gx PW_KEY x@icyphox.sh -set -U Z_CMD "n" - -# source ~/.config/fish/functions/marks.fish - -function fish_user_key_bindings - bind \cr '__fzy_history (commandline -b)' -end - -# The next line updates PATH for the Google Cloud SDK. -if [ -f '/Users/icy/Downloads/google-cloud-sdk/path.fish.inc' ]; . '/Users/icy/Downloads/google-cloud-sdk/path.fish.inc'; end
D config/fish/functions/__fzy_history.fish

@@ -1,6 +0,0 @@

-# Defined in /tmp/fish.wuVePn/__fzy_history.fish @ line 1 -function __fzy_history - history | fzy | read -l cmd - commandline -f repaint - commandline $cmd -end
D config/fish/functions/awssh.fish

@@ -1,4 +0,0 @@

-# Defined in /tmp/fish.luUeJj/awssh.fish @ line 2 -function awssh - ssh ubuntu@$argv -i ~/.ssh/cometchat-aws.pem -end
D config/fish/functions/clip.fish

@@ -1,4 +0,0 @@

-# Defined in - @ line 1 -function clip --wraps='xclip -sel c' --description 'alias clip=xclip -sel c' - xclip -sel c $argv; -end
D config/fish/functions/f.fish

@@ -1,6 +0,0 @@

-# Defined in /tmp/fish.SD03YE/f.fish @ line 2 -function f - fff $argv - set -q XDG_CACHE_HOME; or set XDG_CACHE_HOME $HOME/.cache - cd (cat $XDG_CACHE_HOME/fff/.fff_d) -end
D config/fish/functions/fish_prompt.fish

@@ -1,13 +0,0 @@

-function fish_prompt --description 'Write out the prompt' - set -l cyan (set_color cyan) - set -l prefix '$' - - printf '\n' - set_color cyan - printf '%s' (prompt_pwd) - set_color normal - printf '%s\n' (fish_git_prompt) - set_color white - printf '%s ' $prefix - set_color normal - end
D config/fish/functions/ga.fish

@@ -1,4 +0,0 @@

-# Defined in - @ line 1 -function ga --wraps='git add' --description 'alias ga=git add' - git add $argv; -end
D config/fish/functions/gc.fish

@@ -1,4 +0,0 @@

-# Defined in /tmp/fish.XtHOuP/gc.fish @ line 2 -function gc --wraps='git commit -v' --description 'alias gc=git commit -v' - git commit -v $argv; -end
D config/fish/functions/gd.fish

@@ -1,4 +0,0 @@

-# Defined in - @ line 1 -function gd --wraps='git diff --minimal' --description 'alias gd=git diff --minimal' - git diff --minimal $argv; -end
D config/fish/functions/ggp.fish

@@ -1,4 +0,0 @@

-# Defined in /tmp/fish.8L7BWS/ggp.fish @ line 2 -function ggp - git push origin (git branch --show-current) -end
D config/fish/functions/gpa.fish

@@ -1,4 +0,0 @@

-# Defined in - @ line 1 -function gpa --wraps='git push all master' --description 'alias gpa=git push all master' - git push all master $argv; -end
D config/fish/functions/gst.fish

@@ -1,4 +0,0 @@

-# Defined in /tmp/fish.9tYpdR/gst.fish @ line 2 -function gst --wraps='git status --short' --description 'alias gst=git status --short' - git status --short $argv; -end
D config/fish/functions/ls.fish

@@ -1,9 +0,0 @@

-# Defined in - @ line 1 -function ls --description 'alias ls=colorls -G' - switch (uname) - case OpenBSD - colorls -G $argv - case Darwin - /bin/ls -G $argv - end -end
D config/fish/functions/m.fish

@@ -1,9 +0,0 @@

-# Defined in - @ line 1 -function m --wraps=nail --description 'alias m=nail' - switch (uname) - case OpenBSD - nail $argv; - case Darwin - s-nail $argv; - end -end
D config/fish/functions/marks.fish

@@ -1,20 +0,0 @@

-set -gx MARKPATH ~/.marks - -function mark - mkdir -p $MARKPATH - ln -s $PWD $MARKPATH/$argv -end - -function unmark - rm -i $MARKPATH/(basename $PWD) -end - -function marks - for f in $MARKPATH/* - printf '%s -> %s\n' (basename $f) (readlink $f) - end -end - -function n -d 'The based jumper.' # n because workman - cd (realpath $MARKPATH/$argv) 2>/dev/null || printf '%s\n' "error: no such mark $argv" -end
D config/fish/functions/o.fish

@@ -1,4 +0,0 @@

-# Defined in - @ line 1 -function o --wraps=xdg-open --description 'alias o=xdg-open' - xdg-open $argv; -end
D config/fish/functions/qwerty.fish

@@ -1,5 +0,0 @@

-# Defined in /tmp/fish.kneo2V/qwerty.fish @ line 2 -function qwerty --wraps=setxkbmap\ -option\ \'grp:alt_shift_toggle\'\ -layout\ us,ru\ -variant\ \',phonetic\'\ -option\ \'compose:caps\' --description alias\ qwerty=setxkbmap\ -option\ \'grp:alt_shift_toggle\'\ -layout\ us,ru\ -variant\ \',phonetic\'\ -option\ \'compose:caps\' - setxkbmap -option 'grp:alt_shift_toggle' -layout us,ru -variant ',phonetic' -option 'compose:caps' $argv; - export KEYBOARD_LAYOUT="qwerty" -end
D config/fish/functions/tb.fish

@@ -1,4 +0,0 @@

-# Defined in /tmp/fish.2y8yjw/tb.fish @ line 1 -function tb - nc termbin.com 9999 | xclip -sel c -end
D config/fish/functions/vim.fish

@@ -1,4 +0,0 @@

-# Defined in - @ line 1 -function vim --wraps=nvim --description 'alias vim=nvim' - nvim $argv; -end
D config/fish/functions/workman.fish

@@ -1,6 +0,0 @@

-# Defined in /tmp/fish.pjZWGS/workman.fish @ line 2 -function workman --wraps='setxkbmap us; xmodmap xmodmap/xmodmap.workman && xset r 66' --description 'alias workman=setxkbmap us; xmodmap xmodmap/xmodmap.workman && xset r 66' - setxkbmap -option 'grp:alt_shift_toggle' -layout us,ru -variant ',phonetic' -option 'compose:caps' - xmodmap ~/.xmodmap - export KEYBOARD_LAYOUT="workman" -end
D ksh/.kshrc

@@ -1,6 +0,0 @@

-HISTFILE=$HOME/.ksh_history -HISTSIZE=20000 - -for i in ~/.kshrc.d/[0-9]*; do - . "$i" -done
D ksh/.kshrc.d/04-exports.ksh

@@ -1,29 +0,0 @@

-# export thingys -export BROWSER=/usr/local/bin/iridium -export EDITOR=/usr/local/bin/nvim -export SSH_KEY_PATH="~/.ssh/id_rsa" -export PATH=$HOME/bin:$PATH -export GPG_TTY=$(tty) -export INPUTRC=~/.inputrc -#export PATH=$PATH:$HOME/leet/Nim/bin -export PATH=$PATH:$HOME/.nimble/bin -export PATH=$PATH:$HOME/.local/bin -export PATH=$PATH:/usr/local/go/bin -export PATH=$PATH:/usr/local/pgsql/bin -export PW_DIR=~/passwords -export PW_KEY=x@icyphox.sh -export _Z_CMD="j" -export MOZ_ACCELERATED=1 -export CFLAGS="-O3 -pipe -march=native" -export CXXFLAGS="-O3 -pipe -march=native" -export MAKEFLAGS="-j4" - -# gpg-agent - -[[ -f "$HOME/.gpg-agent-info" ]] && { - . "$HOME/.gpg-agent-info" - export GPG_AGENT_INFO - export SSH_AUTH_SOCK - export SSH_AGENT_PID -} -
D ksh/.kshrc.d/90-aliases.ksh

@@ -1,54 +0,0 @@

-alias gah='sudo $(fc -ln -1)' -alias vime="vim ~/.vimrc" -alias o="xdg-open" -alias gc="git commit -v -s" -alias ga="git add" -alias gd="git diff --minimal" -alias gl="git log --oneline --decorate --graph" -alias vim="nvim" -alias ..="cd .." -alias m="nail" -alias tb="nc termbin.com 9999 | xclip -sel c" - -socks() { - pkill ssh - ssh -D 8008 emerald -fN -} - -gst() { - branch="$(git branch)" - printf '%s\n' "$branch" - git status --short -} - -up() { - ~/bin/icyup.sh "$1" -} - -nvmon() { - source ~/.nvm/nvm.sh -} - -envac() { - . .env/bin/activate -} - -vpn() { - ~/bin/vpnon.sh -} - -ggp() { - git push "$(git remote show)" "$(git branch --show-current)" -} - -gcl() { - git clone "$@" -} - -ls() { - if [ "$(uname)" == "OpenBSD" ]; then - colorls -G "$@" - else - /bin/ls -G "$@" - fi -}
D ksh/.kshrc.d/99-prompt.ksh

@@ -1,34 +0,0 @@

-set -o emacs -cr=$(print -n '\r') -esc=$(print -n '\033') -ps1flag=$(print -n '\001') - -red="$esc[31m" -cyn="$esc[36m" -rst="$esc[0m" - -git_status() { - [[ -n "$(git rev-parse --is-inside-work-tree)" ]] || - return - - branch="$(git branch --show-current)" - [[ "$branch" == "" ]] && branch="$(git rev-parse --short HEAD)" - - [[ "$(git status --porcelain)" != "" ]] || - clean=" *" - - printf ' (%s%s)' "$branch" "$clean" -} - -# first, set the rootornot part -if [[ $(id -u) = 0 ]]; then - PS1="$ps1flag$red$ps1flag#$ps1flag$rst$ps1flag" -else - PS1= -fi - -# then, combine it all -PS1="$ps1flag$cr -$ps1flag$cyn$ps1flag\$PWD$rst$(git_status)$ps1flag$rst$ps1flag -▲$PS1 " -PS2="> "