mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
minor fix
This commit is contained in:
parent
6a84917074
commit
711730d9ee
3 changed files with 28 additions and 28 deletions
|
|
@ -61,3 +61,8 @@ set directory=$XDG_STATE_HOME/vim/swap
|
||||||
set undodir=$XDG_STATE_HOME/vim/undo
|
set undodir=$XDG_STATE_HOME/vim/undo
|
||||||
set viewdir=$XDG_STATE_HOME/vim/view
|
set viewdir=$XDG_STATE_HOME/vim/view
|
||||||
" set shada+=n$XDG_STATE_HOME/vim/shada
|
" set shada+=n$XDG_STATE_HOME/vim/shada
|
||||||
|
" Leader
|
||||||
|
let mapleader = "\<Space>"
|
||||||
|
nnoremap <leader><leader> :FZF<CR>
|
||||||
|
" Misc
|
||||||
|
syntax on
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
;; vim:ft=kmonad
|
|
||||||
;; Linux kmonad.kbd
|
;; Linux kmonad.kbd
|
||||||
|
|
||||||
(defcfg
|
(defcfg
|
||||||
|
|
|
||||||
|
|
@ -3,20 +3,20 @@
|
||||||
# ~/.bash_aliases
|
# ~/.bash_aliases
|
||||||
# or in if antidots and wheel
|
# or in if antidots and wheel
|
||||||
# ~/.config/bash/bash_aliases
|
# ~/.config/bash/bash_aliases
|
||||||
if command -v zoxide > /dev/null ; then
|
if command -v zoxide >/dev/null; then
|
||||||
eval "$(zoxide init bash)"
|
eval "$(zoxide init bash)"
|
||||||
# Relative navigation #
|
# Relative navigation #
|
||||||
alias ..="z .."
|
alias ..="z .."
|
||||||
alias ...="z ../.."
|
alias ...="z ../.."
|
||||||
alias ....="z ../../.."
|
alias ....="z ../../.."
|
||||||
alias .....="z ../../../.."
|
alias .....="z ../../../.."
|
||||||
alias ......="z ../../../../.."
|
alias ......="z ../../../../.."
|
||||||
# Use `-` to jump to the previous directory
|
# Use `-` to jump to the previous directory
|
||||||
# Oh-My-Zsh defines a similar one
|
# Oh-My-Zsh defines a similar one
|
||||||
-(){
|
-() {
|
||||||
z -
|
z -
|
||||||
}
|
}
|
||||||
zls(){
|
zls() {
|
||||||
cd $1 && ls
|
cd $1 && ls
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -30,7 +30,6 @@ else
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
alias ni=touch
|
alias ni=touch
|
||||||
alias cls=clear
|
alias cls=clear
|
||||||
alias ii=open
|
alias ii=open
|
||||||
|
|
@ -54,9 +53,10 @@ alias ipy=ipython
|
||||||
|
|
||||||
alias g=lazygit
|
alias g=lazygit
|
||||||
|
|
||||||
|
alias doomd="emacsclient -t ~/.config/doom/"
|
||||||
|
|
||||||
# lsd - modern ls
|
# lsd - modern ls
|
||||||
if command -v lsd > /dev/null; then
|
if command -v lsd >/dev/null; then
|
||||||
alias ls='lsd'
|
alias ls='lsd'
|
||||||
alias l='lsd -lah'
|
alias l='lsd -lah'
|
||||||
alias ll='lsd -l'
|
alias ll='lsd -l'
|
||||||
|
|
@ -68,46 +68,44 @@ else
|
||||||
alias ll='ls -l'
|
alias ll='ls -l'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Functions #
|
# Functions #
|
||||||
mkcd() {
|
mkcd() {
|
||||||
mkdir -p $1 && cd $1
|
mkdir -p $1 && cd $1
|
||||||
}
|
}
|
||||||
cdls(){
|
cdls() {
|
||||||
cd $1 && ls
|
cd $1 && ls
|
||||||
}
|
}
|
||||||
tc(){
|
tc() {
|
||||||
touch $1 && code $1
|
touch $1 && code $1
|
||||||
}
|
}
|
||||||
tv(){
|
tv() {
|
||||||
touch $1 && nvim $1
|
touch $1 && nvim $1
|
||||||
}
|
}
|
||||||
mt(){
|
mt() {
|
||||||
mkdir -p $(dirname $1) && touch $1
|
mkdir -p $(dirname $1) && touch $1
|
||||||
}
|
}
|
||||||
mtv(){
|
mtv() {
|
||||||
mkdir -p $(dirname $1) && touch $1 && nvim $1
|
mkdir -p $(dirname $1) && touch $1 && nvim $1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
alias update="source $DOTFILES/scripts/update.zsh"
|
alias update="source $DOTFILES/scripts/update.zsh"
|
||||||
|
|
||||||
if command -v pacman > /dev/null; then
|
if command -v pacman >/dev/null; then
|
||||||
alias pac="sudo pacman"
|
alias pac="sudo pacman"
|
||||||
alias paci="sudo pacman -S"
|
alias paci="sudo pacman -S"
|
||||||
alias pacr="sudo pacman -R"
|
alias pacr="sudo pacman -R"
|
||||||
alias pacu="sudo pacman -Syu"
|
alias pacu="sudo pacman -Syu"
|
||||||
alias pacl="pacman -Q"
|
alias pacl="pacman -Q"
|
||||||
if command -v paru > /dev/null; then
|
if command -v paru >/dev/null; then
|
||||||
alias pacs="paru -Ss"
|
alias pacs="paru -Ss"
|
||||||
elif command -v yay > /dev/null; then
|
elif command -v yay >/dev/null; then
|
||||||
alias pacs="yay -Ss"
|
alias pacs="yay -Ss"
|
||||||
else
|
else
|
||||||
alias pacs="pacman -Ss"
|
alias pacs="pacman -Ss"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v apt > /dev/null; then
|
if command -v apt >/dev/null; then
|
||||||
alias apt="sudo apt"
|
alias apt="sudo apt"
|
||||||
alias apti="sudo apt install"
|
alias apti="sudo apt install"
|
||||||
alias aptr="sudo apt remove"
|
alias aptr="sudo apt remove"
|
||||||
|
|
@ -116,7 +114,7 @@ if command -v apt > /dev/null; then
|
||||||
alias aptl="apt list --installed"
|
alias aptl="apt list --installed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v brew > /dev/null; then
|
if command -v brew >/dev/null; then
|
||||||
alias brewi="brew install"
|
alias brewi="brew install"
|
||||||
alias brewr="brew uninstall"
|
alias brewr="brew uninstall"
|
||||||
alias brewu="brew update && brew upgrade"
|
alias brewu="brew update && brew upgrade"
|
||||||
|
|
@ -124,8 +122,6 @@ if command -v brew > /dev/null; then
|
||||||
alias brewl="brew list"
|
alias brewl="brew list"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# TODO: Does not work
|
# TODO: Does not work
|
||||||
if [ "$TERM" = "xterm-ghostty" ] || [ "$TERM" = "xterm-kitty" ]; then
|
if [ "$TERM" = "xterm-ghostty" ] || [ "$TERM" = "xterm-kitty" ]; then
|
||||||
alias icat="kitten icat"
|
alias icat="kitten icat"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue