minor alias stuff, nvim binds
This commit is contained in:
@@ -38,5 +38,8 @@
|
|||||||
"!Split",
|
"!Split",
|
||||||
"!Split sequence"
|
"!Split sequence"
|
||||||
],
|
],
|
||||||
"[rust]": {}
|
"[rust]": {},
|
||||||
|
"extensions.experimental.affinity": {
|
||||||
|
"asvetliakov.vscode-neovim": 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -9,8 +9,8 @@ function map(mode, lhs, rhs, opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- frankly i dont know what the hell im doing
|
-- frankly i dont know what the hell im doing
|
||||||
map("n", "<Enter>", "i<Enter><Esc>k$")
|
map("n", "<Enter>", "i<Enter><Esc>k$") -- Enter in normal moves the current line down
|
||||||
|
-- map("n", "<Space>", "i<Space><Esc>") -- Space in normal inserts a space, shifting the current character to the right
|
||||||
-- map("n", "<S-Enter>", "d$O<Esc>p^")
|
-- map("n", "<S-Enter>", "d$O<Esc>p^")
|
||||||
-- map("n", "<Space>", "i<Space><Esc>")
|
map("n", "<A-Space>", "<Esc>") -- Alt+Space goes to normal mode using Esc
|
||||||
map("n", "<A-Space>", "<Esc>")
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ alias r='R'
|
|||||||
alias xar="xarchiver"
|
alias xar="xarchiver"
|
||||||
alias g="git"
|
alias g="git"
|
||||||
alias py="python"
|
alias py="python"
|
||||||
|
alias t="dict"
|
||||||
|
|
||||||
|
|
||||||
# Add an "alert" alias for long running commands. Use like so: 'sleep 10; alert'
|
# Add an "alert" alias for long running commands. Use like so: 'sleep 10; alert'
|
||||||
alias notify='notify-send --urgency=normal -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
alias notify='notify-send --urgency=normal -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||||
@@ -34,14 +36,6 @@ sleep() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pipif() {
|
|
||||||
pip install $1 && pip freeze | rg "$1=" >> requirements.txt
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
colors() {
|
colors() {
|
||||||
local fgc bgc vals seq0
|
local fgc bgc vals seq0
|
||||||
|
|
||||||
@@ -69,13 +63,15 @@ colors() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# set title in zsh (for alacritty)
|
wttr() #alternatively use schachmat/wego
|
||||||
title()
|
|
||||||
{
|
{
|
||||||
echo -e "\e]2;$1\007";
|
for city in "$@"; do
|
||||||
|
curl "wttr.in/$city";
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
pwd()
|
|
||||||
|
pwd() # print path of files
|
||||||
{
|
{
|
||||||
echo "$PWD/$1"
|
echo "$PWD/$1"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user