Compare commits
2 commits
0fe5411708
...
b9d858d04e
Author | SHA1 | Date | |
---|---|---|---|
b9d858d04e | |||
9449651a83 |
2 changed files with 37 additions and 0 deletions
30
.config/zsh/functions.zsh
Normal file
30
.config/zsh/functions.zsh
Normal file
|
@ -0,0 +1,30 @@
|
|||
function vim {
|
||||
if [[ -z "$@" ]]; then
|
||||
if [[ -f "./.session.vim" ]]; then
|
||||
nvim -S .session.vim --listen /tmp/nvim.pipe -c 'lua vim.g.savesession = true'
|
||||
else
|
||||
nvim --listen /tmp/nvim.pipe -c 'lua vim.g.savesession = true'
|
||||
fi
|
||||
else
|
||||
nvim --listen /tmp/nvim.pipe "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
function sourceall(){
|
||||
set -e
|
||||
pids=$(pgrep zsh)
|
||||
while IFS= read -r pid; do
|
||||
kill -USR1 "$pid"
|
||||
done <<< "$pids"
|
||||
set +e
|
||||
}
|
||||
|
||||
|
||||
function routevpn(){
|
||||
sudo route -n add $1 10.8.0.1
|
||||
}
|
||||
|
||||
alias ls="eza --icons -l --sort type"
|
||||
alias lg="lazygit"
|
||||
alias calcurse-caldav='CALCURSE_CALDAV_PASSWORD=$(keyring get caldav afonso) calcurse-caldav'
|
||||
alias routes="netstat -rn -f inet"
|
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
id_ed25519_sk
|
||||
id_ed25519_sk.pub
|
||||
touch_key
|
||||
touch_key.pub
|
||||
.session.vim
|
||||
known_hosts
|
||||
known_hosts.old
|
Loading…
Reference in a new issue