Compare commits
No commits in common. "master" and "clean" have entirely different histories.
24
.bashrc
24
.bashrc
@ -87,11 +87,6 @@ fi
|
|||||||
# colored GCC warnings and errors
|
# colored GCC warnings and errors
|
||||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||||
|
|
||||||
vc() {
|
|
||||||
git add .
|
|
||||||
git commit -m "commit: $(date "+%Y-%m-%d %H:%M:%S")"
|
|
||||||
git push
|
|
||||||
}
|
|
||||||
# some more ls aliases
|
# some more ls aliases
|
||||||
alias ll='ls -alFh'
|
alias ll='ls -alFh'
|
||||||
alias la='ls -A'
|
alias la='ls -A'
|
||||||
@ -103,25 +98,15 @@ alias osw="lsof 2>/dev/null +D . | awk '\$NF ~ /swp$/ {print \$9}' | sed 's/\.sw
|
|||||||
alias xpg="lsof 2>/dev/null +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r $PG -f"
|
alias xpg="lsof 2>/dev/null +D . | grep 'pg.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r $PG -f"
|
||||||
alias xsw="lsof 2>/dev/null +D . | grep '.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r $PG -f"
|
alias xsw="lsof 2>/dev/null +D . | grep '.*swp$' | awk '{print \$9}' | sed 's/\.swp//g' | sed 's/\/\./\//g' | xargs -r $PG -f"
|
||||||
alias ons='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd)"'
|
alias ons='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd)"'
|
||||||
alias xns='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | sed "s/\\.swo$//" | grep "$(pwd | sed "s|^//|/|")" | fzf | xargs -I % $PG -f %'
|
alias xns='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd)" | fzf | xargs -I % $PG -f %'
|
||||||
alias xnsp='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | sed "s/\\.swo$//" | grep "$(pwd | sed "s|^//|/|")" | fzf | xargs -I % $PG -f % | pspg'
|
alias mns='fzf | xargs -I {} sqlcmd.exe -S usmidsql01 -i {}'
|
||||||
#alias xnsp='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd)" | fzf | xargs -I % $PG -f % | pspg'
|
|
||||||
alias mns='fzf | xargs -I {} sqlcmd -U Pricing -S mid-sql02 -C -i {} | pspg'
|
|
||||||
alias xmsp='lsof +D ~/.local/state/nvim/swap/ | grep -o "/swap/.*" | cut -c 7- | tr "%" "/" | sed "s/\\.swp$//" | grep "$(pwd | sed "s|^//|/|")" | fzf | xargs -I % $MS -i % | pspg'
|
|
||||||
alias nv='~/nvim-linux64/bin/nvim'
|
alias nv='~/nvim-linux64/bin/nvim'
|
||||||
alias gs='git status -s'
|
alias gs='git status -s'
|
||||||
alias ga='git status --untracked-files=all -s | fzf -m | awk "{print \$2}" | xargs git add '
|
alias ga='git status --untracked-files=all -s | fzf -m | awk "{print \$2}" | xargs git add '
|
||||||
alias gx='git status --untracked-files=all -s | fzf -m | awk "{print \$2}" | xargs git checkout '
|
|
||||||
alias td='rg "\- \[[^x]\]"'
|
|
||||||
# alias tdo='rg "\- \[[^x]\]" | fzf | xargs nvim'
|
|
||||||
alias tdo='rg "\- \[ \]" --line-number | fzf | awk -F: "{print \$1, \"+\"\$2}" | xargs -r nvim'
|
|
||||||
alias gr='git reset HEAD'
|
alias gr='git reset HEAD'
|
||||||
alias gc='git commit -v'
|
alias gc='git commit -v'
|
||||||
alias gd='git difftool'
|
alias gd='git difftool'
|
||||||
alias gl='git log --graph --oneline --format="%C(yellow)%h %C(green)%an%Creset %C(blue)%ad%Creset %s"'
|
alias gl='git log --graph --oneline --format="%C(yellow)%h %C(green)%an%Creset %C(blue)%ad%Creset %s"'
|
||||||
alias cj='cd ~/storage/shared/Documents/journal/'
|
|
||||||
alias jr='cd ~/storage/shared/Documents/journal/ && git pull && vc && cd -'
|
|
||||||
alias hc='cd ~/storage/shared/Documents/hc_notes/ && git pull && git push && cd -'
|
|
||||||
|
|
||||||
# Add an "alert" alias for long running commands. Use like so:
|
# Add an "alert" alias for long running commands. Use like so:
|
||||||
# sleep 10; alert
|
# sleep 10; alert
|
||||||
@ -147,9 +132,7 @@ if ! shopt -oq posix; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#EDITOR=/usr/bin/vim.basic
|
EDITOR=/usr/bin/vim.basic
|
||||||
export EDITOR=vim
|
|
||||||
export VISUAL=vim
|
|
||||||
PAGER="less"
|
PAGER="less"
|
||||||
LESS="-S"
|
LESS="-S"
|
||||||
export PSQL_PAGER="pspg"
|
export PSQL_PAGER="pspg"
|
||||||
@ -162,4 +145,3 @@ fi
|
|||||||
bind 'set bell-style none'
|
bind 'set bell-style none'
|
||||||
|
|
||||||
[ -f ~/dot_config/.bashrc_local ] && source ~/dot_config/.bashrc_local
|
[ -f ~/dot_config/.bashrc_local ] && source ~/dot_config/.bashrc_local
|
||||||
export PATH=$PATH:~/lua-language-server/bin
|
|
||||||
|
@ -20,9 +20,5 @@
|
|||||||
directory = /var/www/html/resume
|
directory = /var/www/html/resume
|
||||||
directory = /opt/forecast_api/
|
directory = /opt/forecast_api/
|
||||||
directory = /opt/forecast_api
|
directory = /opt/forecast_api
|
||||||
directory = /etc/postgresql/15/main/
|
|
||||||
directory = /etc/postgresql/15/main
|
|
||||||
directory = /storage/emulated/0/Documents/journal
|
|
||||||
directory = /storage/emulated/0/Documents/hc_notes
|
|
||||||
[pull]
|
[pull]
|
||||||
rebase = false
|
rebase = false
|
||||||
|
12
.pspgconf
12
.pspgconf
@ -13,7 +13,7 @@ force_uniborder = false
|
|||||||
show_rownum = false
|
show_rownum = false
|
||||||
without_commandbar = false
|
without_commandbar = false
|
||||||
without_topbar = false
|
without_topbar = false
|
||||||
vertical_cursor = true
|
vertical_cursor = false
|
||||||
on_sigint_exit = false
|
on_sigint_exit = false
|
||||||
no_sigint_search_reset = false
|
no_sigint_search_reset = false
|
||||||
double_header = false
|
double_header = false
|
||||||
@ -25,16 +25,10 @@ menu_always = false
|
|||||||
empty_string_is_null = true
|
empty_string_is_null = true
|
||||||
last_row_search = true
|
last_row_search = true
|
||||||
progressive_load_mode = true
|
progressive_load_mode = true
|
||||||
highlight_odd_rec = true
|
highlight_odd_rec = false
|
||||||
hide_header_line = false
|
hide_header_line = false
|
||||||
on_exit_reset = false
|
theme = 0
|
||||||
on_exit_clean = false
|
|
||||||
on_exit_erase_line = false
|
|
||||||
on_exit_sgr0 = false
|
|
||||||
direct_color = false
|
|
||||||
theme = 18
|
|
||||||
border_type = 2
|
border_type = 2
|
||||||
default_clipboard_format = 0
|
default_clipboard_format = 0
|
||||||
clipboard_app = 0
|
clipboard_app = 0
|
||||||
hist_size = 500
|
hist_size = 500
|
||||||
esc_delay = -1
|
|
||||||
|
5
.psqlrc
5
.psqlrc
@ -2,8 +2,3 @@
|
|||||||
\set x '\\setenv PAGER ''less -S'''
|
\set x '\\setenv PAGER ''less -S'''
|
||||||
\set xx '\\setenv PAGER \'pspg -bX --no-mouse\''
|
\set xx '\\setenv PAGER \'pspg -bX --no-mouse\''
|
||||||
\timing on
|
\timing on
|
||||||
\set QUIET 1
|
|
||||||
\pset linestyle unicode
|
|
||||||
-- \pset border 2
|
|
||||||
\pset null ∅
|
|
||||||
\unset QUIET
|
|
||||||
|
2
.vimrc
2
.vimrc
@ -26,7 +26,7 @@ let NERDTreeShowHidden=1
|
|||||||
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
|
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set nowrap
|
set nowrap
|
||||||
colorscheme desert
|
colorscheme darkblue
|
||||||
syntax on
|
syntax on
|
||||||
set splitright
|
set splitright
|
||||||
set splitbelow
|
set splitbelow
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
# Create the file repository configuration:
|
|
||||||
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
|
|
||||||
|
|
||||||
# Import the repository signing key:
|
|
||||||
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
|
||||||
|
|
||||||
# Update the package lists:
|
|
||||||
sudo apt-get update
|
|
||||||
|
|
||||||
# Install the latest version of PostgreSQL.
|
|
||||||
# If you want a specific version, use 'postgresql-12' or similar instead of 'postgresql':
|
|
||||||
sudo apt-get -y install postgresql
|
|
@ -1,24 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Update the package list
|
|
||||||
sudo apt-get update
|
|
||||||
|
|
||||||
# Install the software-properties-common package
|
|
||||||
sudo apt-get install software-properties-common
|
|
||||||
|
|
||||||
# Add the deadsnakes PPA to the sources list
|
|
||||||
sudo add-apt-repository ppa:deadsnakes/ppa
|
|
||||||
|
|
||||||
# Update the package list again
|
|
||||||
sudo apt-get update
|
|
||||||
|
|
||||||
# Check the latest version of Python 3 available
|
|
||||||
latest_version=$(apt-cache madison python3 | awk '{print $3}' | grep "^3\." | sort -V | tail -1)
|
|
||||||
|
|
||||||
# Install the latest version of Python 3
|
|
||||||
sudo apt-get install -y python3=$latest_version
|
|
||||||
|
|
||||||
# Verify the installation
|
|
||||||
python3 --version
|
|
||||||
which python3
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip
|
|
||||||
|
|
||||||
# Clone the Neovim repository
|
|
||||||
git clone https://github.com/neovim/neovim.git ~/neovim
|
|
||||||
|
|
||||||
# Navigate into the Neovim directory
|
|
||||||
cd ~/neovim
|
|
||||||
|
|
||||||
# Checkout the latest release tag
|
|
||||||
git checkout $(git describe --tags --abbrev=0)
|
|
||||||
|
|
||||||
# Build and install Neovim
|
|
||||||
make CMAKE_BUILD_TYPE=Release
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
cd -
|
|
11
setup.sh
11
setup.sh
@ -184,14 +184,3 @@ while true; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
while true; do
|
|
||||||
read -p "do you want to install fzf, ripgrep?" yn
|
|
||||||
case $yn in
|
|
||||||
[Yy]* )
|
|
||||||
sudo apt-get install fzf ripgrep
|
|
||||||
break;;
|
|
||||||
[Nn]* )
|
|
||||||
break;;
|
|
||||||
* ) echo "Please answer yes or no.";;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
Loading…
Reference in New Issue
Block a user