mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
shell qol update
This commit is contained in:
parent
0bc474161a
commit
38d3bf7ae9
6 changed files with 31 additions and 2 deletions
|
|
@ -42,7 +42,8 @@
|
|||
|
||||
;; If you use `org' and don't want your org files in the default location below,
|
||||
;; change `org-directory'. It must be set before org loads!
|
||||
(setq org-directory "~/Documents/OrgFiles/")
|
||||
(setq org-directory "~/OrgFiles/")
|
||||
(setq org-roam-directory "~/OrgFiles/roam/")
|
||||
|
||||
|
||||
;; Whenever you reconfigure a package, make sure to wrap your config in an
|
||||
|
|
|
|||
|
|
@ -47,6 +47,12 @@ function tv
|
|||
touch $argv[1] && nvim $argv[1]
|
||||
end
|
||||
|
||||
# Create a new file, if the directory does not exist, create it
|
||||
# Arg: a file name
|
||||
function mt
|
||||
mkdir -p (dirname $argv[1]) && touch $argv[1]
|
||||
end
|
||||
|
||||
# Use neovide as gVim
|
||||
abbr --add gvi "neovide"
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ function tv { param ( [string] $filename) New-Item $filename && nvim $filename }
|
|||
function cdls { param( [string] $dirname) Set-Location $dirname && Get-ChildItem }
|
||||
function zls { param( [string] $dirname) z $dirname && Get-ChildItem }
|
||||
function zl { param( [string] $dirname) z $dirname && lsd }
|
||||
function mt { param( [string] $dirname) New-Item -ItemType File -Name $dirname -Force }
|
||||
|
||||
|
||||
### Dev ###
|
||||
|
|
|
|||
|
|
@ -53,6 +53,9 @@ tc(){
|
|||
tv(){
|
||||
touch $1 && nvim $1
|
||||
}
|
||||
mt(){
|
||||
mkdir -p $(dirname $1) && touch $1
|
||||
}
|
||||
|
||||
|
||||
alias update="source $DOTFILES/scripts/update.zsh"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue