nvim oil, shell aliases, zsh tweaks
This commit is contained in:
@@ -121,7 +121,7 @@ bindsym $mod+Shift+0 move container to workspace $ws10
|
||||
bindsym $mod+Return exec --no-startup-id "rofi -show"
|
||||
bindsym $mod+Shift+space exec --no-startup-id alacritty
|
||||
bindsym $mod+w exec --no-startup-id firefox
|
||||
bindsym $mod+Shift+w exec --no-startup-id "firefox -profile ~/.mozilla/firefox/2ustnzbw.shopping"
|
||||
# bindsym $mod+Shift+w exec --no-startup-id "firefox -profile ~/.mozilla/firefox/2ustnzbw.shopping"
|
||||
bindsym $mod+e exec --no-startup-id thunar
|
||||
bindsym --release $mod+s exec "import ~/Pictures/screenshots/$(date '+%y_%m_%d-%H_%M_%S').png"
|
||||
bindsym $mod+Shift+s exec "import -window root ~/Pictures/screenshots/$(date '+%y_%m_%d-%H_%M_%S').png"
|
||||
@@ -137,7 +137,7 @@ bindsym $mod+Shift+s exec "import -window root ~/Pictures/screenshots/$(date '+
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
# DESKTOP STUFF
|
||||
# set background picture
|
||||
exec --no-startup-id nitrogen --set-zoom-fill $HOME/.config/i3/bg.png
|
||||
exec --no-startup-id nitrogen --set-tiled $HOME/.config/i3/eurkey.png
|
||||
|
||||
# try to start tray tools / applets manually
|
||||
exec --no-startup-id nm-applet
|
||||
|
||||
BIN
.config/i3/eurkey.png
Normal file
BIN
.config/i3/eurkey.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
@@ -19,6 +19,7 @@ packer.startup(function()
|
||||
use 'neovim/nvim-lspconfig'
|
||||
use 'nvim-treesitter/nvim-treesitter'
|
||||
use 'kylechui/nvim-surround'
|
||||
use 'stevearc/oil.nvim'
|
||||
-- use nvim-leap
|
||||
end
|
||||
)
|
||||
@@ -31,4 +32,4 @@ configs.setup {
|
||||
}
|
||||
}
|
||||
]]--
|
||||
|
||||
require("oil").setup()
|
||||
|
||||
@@ -3,8 +3,8 @@ alias diff='diff -u --color'
|
||||
alias tree='eza --tree'
|
||||
alias ls='eza --group-directories-first' # make output more readable and show directories first
|
||||
alias ll='ls --long --header --git'
|
||||
alias li='ls --git-ignore'
|
||||
alias la='ls --all'
|
||||
alias li='la --git-ignore'
|
||||
alias less='less --use-color'
|
||||
alias grep='rg' # colorize grep output, set GREP_COLORS
|
||||
alias cp="cp -i" # Confirm before overwriting something
|
||||
@@ -13,8 +13,8 @@ alias vi='nvim' # Show sizes in
|
||||
alias r='R'
|
||||
alias xar="xarchiver"
|
||||
alias g="git"
|
||||
alias py="python"
|
||||
alias t="dict"
|
||||
alias u="dict"
|
||||
alias todo="rg '(TODO|FIXME|NOTE)'"
|
||||
|
||||
|
||||
# Add an "alert" alias for long running commands. Use like so: 'sleep 10; alert'
|
||||
@@ -76,3 +76,22 @@ pwd() # print path of files
|
||||
echo "$PWD/$1"
|
||||
}
|
||||
|
||||
ranger() {
|
||||
if [ -z "$RANGER_LEVEL" ]; then
|
||||
/usr/bin/ranger "$@"
|
||||
else
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
py() {
|
||||
if [ $# -eq 0 ]; then
|
||||
ipython
|
||||
else
|
||||
python "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
act() {
|
||||
source .venv/bin/activate
|
||||
}
|
||||
|
||||
1
.profile
1
.profile
@@ -20,6 +20,7 @@ alias yarn='yarn --use-yarnrc "$XDG_CONFIG_HOME/yarn/config"'
|
||||
alias code='code --extensions-dir "$XDG_DATA_HOME/vscode"'
|
||||
alias dict='dict -c "$XDG_CONFIG_HOME"/dict/dictrc '
|
||||
|
||||
export PATH="$PATH:$(gem env user_gemhome)/bin"
|
||||
|
||||
# THEME
|
||||
|
||||
|
||||
42
.zshrc
42
.zshrc
@@ -3,6 +3,7 @@
|
||||
# confirmations, etc.) must go above this block; everything else may go below.
|
||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
else;
|
||||
fi
|
||||
|
||||
source ~/.profile
|
||||
@@ -18,6 +19,7 @@ xset b off
|
||||
autoload -Uz compinit # load completion
|
||||
compinit
|
||||
_comp_options+=(globdots) # Include hidden files.
|
||||
eval "$(zoxide init zsh)"
|
||||
setopt autocd # allow cd by only entering directory without cd command
|
||||
setopt extendedglob # Extended globbing. Allows using regular expressions with *
|
||||
setopt correct # Auto correct mistakes
|
||||
@@ -122,7 +124,7 @@ source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh # l
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#737373,bg=translucent"
|
||||
|
||||
|
||||
|
||||
source <(fzf --zsh)
|
||||
|
||||
#random stuff
|
||||
|
||||
@@ -131,41 +133,3 @@ source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh # l
|
||||
#zstyle ':completion:*' original true
|
||||
|
||||
#zstyle :compinstall filename '/home/en/.zshrc'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#if [[ -f ~/.dircolors ]] ; then
|
||||
# eval $(dircolors -b ~/.dircolors)
|
||||
#elif [[ -f /etc/DIR_COLORS ]] ; then
|
||||
# eval $(dircolors -b /etc/DIR_COLORS)
|
||||
#fi
|
||||
#
|
||||
function command_not_found_handler {
|
||||
local purple='\e[1;35m' bright='\e[0;1m' green='\e[1;32m' reset='\e[0m'
|
||||
printf 'zsh: command not found: %s\n' "$1"
|
||||
local entries=(
|
||||
${(f)"$(/usr/bin/pacman -F --machinereadable -- "/usr/bin/$1")"}
|
||||
)
|
||||
if (( ${#entries[@]} ))
|
||||
then
|
||||
printf "${bright}$1${reset} may be found in the following packages:\n"
|
||||
local pkg
|
||||
for entry in "${entries[@]}"
|
||||
do
|
||||
# (repo package version file)
|
||||
local fields=(
|
||||
${(0)entry}
|
||||
)
|
||||
if [[ "$pkg" != "${fields[2]}" ]]
|
||||
then
|
||||
printf "${purple}%s/${bright}%s ${green}%s${reset}\n" "${fields[1]}" "${fields[2]}" "${fields[3]}"
|
||||
fi
|
||||
printf ' /%s\n' "${fields[4]}"
|
||||
pkg="${fields[2]}"
|
||||
done
|
||||
fi
|
||||
return 127
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user