New aliases and some other changes
This commit is contained in:
parent
9b16ca8fd2
commit
f71bcc84ec
12
.Xresources
12
.Xresources
@ -7,7 +7,7 @@ URxvt.scrollBar: false
|
||||
URxvt.internalBorder: 10
|
||||
|
||||
! Font styles
|
||||
URxvt.font: xft:MesloLGS NF:size=12
|
||||
URxvt.font: xft:MesloLGS NF:size=16
|
||||
URxvt.cursorColor: #d50505
|
||||
URxvt.highlightColor: #303030
|
||||
URxvt.highlightTextColor: #A0A0A0
|
||||
@ -17,5 +17,11 @@ URxvt.saveLines: 200000
|
||||
URxvt.perl-ext-common: resize-font
|
||||
|
||||
! Resize terminal
|
||||
URxvt.resize-font.smaller: C-j
|
||||
URxvt.resize-font.bigger: C-k
|
||||
URxvt.keysym.Shift-Control-J: resize-font:smaller
|
||||
URxvt.keysym.Shift-Control-K: resize-font:bigger
|
||||
|
||||
! Ctrl-HJKL
|
||||
URxvt.keysym.Control-j: \033[1;5A
|
||||
URxvt.keysym.Control-k: \033[1;5B
|
||||
URxvt.keysym.Control-h: \033[1;5D
|
||||
URxvt.keysym.Control-l: \033[1;5C
|
||||
|
@ -42,7 +42,7 @@ floating_modifier $mod
|
||||
|
||||
# start applications
|
||||
bindsym $mod+Return exec i3-sensible-terminal
|
||||
bindsym $mod+Shift+f exec firefox
|
||||
bindsym $mod+Shift+f exec chromium
|
||||
bindsym $mod+Shift+d exec discord
|
||||
bindsym Print exec "flameshot gui"
|
||||
|
||||
|
11
vim/init.vim
11
vim/init.vim
@ -11,6 +11,7 @@ set nohlsearch
|
||||
set hidden
|
||||
set incsearch
|
||||
set scrolloff=8
|
||||
set colorcolumn=80
|
||||
set signcolumn=yes
|
||||
|
||||
" Remove arrow keys to train my fingers
|
||||
@ -23,6 +24,9 @@ noremap <Right> <Nop>
|
||||
nnoremap <SPACE> <Nop>
|
||||
let mapleader=" "
|
||||
|
||||
" Grammarous keybindings
|
||||
noremap <C-c> :GrammarousCheck<CR>
|
||||
|
||||
" Add key bindings for fuzzy finder
|
||||
nnoremap <leader>pf <cmd>Telescope find_files<cr>
|
||||
nnoremap <leader>pg <cmd>Telescope live_grep<cr>
|
||||
@ -34,6 +38,9 @@ call plug#begin('~/.vim/plugged')
|
||||
Plug 'neovim/nvim-lspconfig'
|
||||
Plug 'nvim-lua/completion-nvim'
|
||||
|
||||
" Grammar checker
|
||||
Plug 'rhysd/vim-grammarous'
|
||||
|
||||
" Nvim fuzzy finder
|
||||
Plug 'nvim-lua/popup.nvim'
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
@ -49,8 +56,10 @@ call plug#end()
|
||||
" Load the clangd server as the interpreter
|
||||
set completeopt=menuone,noinsert,noselect
|
||||
let g:completion_matching_strategy_list = ['exact', 'substring', 'fuzzy']
|
||||
|
||||
" Language server for nvim-lsp
|
||||
lua require'lspconfig'.clangd.setup{on_attach=require'completion'.on_attach}
|
||||
lua require'lspconfig'.pyls.setup{on_attach=require'completion'.on_attach}
|
||||
"lua require'lspconfig'.pyls.setup{on_attach=require'completion'.on_attach}
|
||||
|
||||
" Set colorscheme
|
||||
colorscheme gruvbox
|
||||
|
23
zsh/.zshrc
23
zsh/.zshrc
@ -208,16 +208,35 @@ zplug load
|
||||
source /usr/share/fzf/completion.zsh
|
||||
source /usr/share/fzf/key-bindings.zsh
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
# CUSTOM ALIASES & FUNCTIONS
|
||||
alias open='xdg-open'
|
||||
alias cewl='ruby -W0 /opt/CeWL/cewl.rb'
|
||||
alias up='sudo python -m http.server 80'
|
||||
alias listen='rlwrap nc -lnvp'
|
||||
alias vim='nvim'
|
||||
|
||||
# Cd multiple directoryies alias.
|
||||
function .. () {cd ..}
|
||||
function ... () {cd ../../}
|
||||
function .... () {cd ../../../}
|
||||
function ..... () {cd ../../../../}
|
||||
function ...... () {cd ../../../../../}
|
||||
|
||||
function up() {
|
||||
for ip in $(ip addr | awk "/inet .*$1/ {print \$2}" | cut -d / -f 1)
|
||||
do
|
||||
for filepath in $(find . -maxdepth 1 -type f -name '[^.]*' -printf '%f\n')
|
||||
do
|
||||
echo "http://$ip/$filepath"
|
||||
done
|
||||
done
|
||||
sudo python -m http.server 80
|
||||
}
|
||||
|
||||
# Wordlists
|
||||
export rockyou="/usr/share/seclists/Passwords/Leaked-Databases/rockyou.txt"
|
||||
export fasttrack="/usr/share/seclists/Passwords/fasttrack.txt"
|
||||
|
Loading…
x
Reference in New Issue
Block a user