fix org-capture, ssh-agent, git pull rebase, some aliases
This commit is contained in:
parent
011902d18d
commit
92b2c7f208
9
.aliases
9
.aliases
|
@ -2,10 +2,12 @@ alias ..='cd ..'
|
||||||
alias ...='cd ../..'
|
alias ...='cd ../..'
|
||||||
alias ....='cd ../../..'
|
alias ....='cd ../../..'
|
||||||
alias .....='cd ../../../..'
|
alias .....='cd ../../../..'
|
||||||
alias rs='rsync --progress -v'
|
alias rs='rsync --progress -vur '
|
||||||
alias up='sudo apt update && sudo apt upgrade'
|
alias up='sudo apt update && sudo apt upgrade'
|
||||||
alias upnodock='sudo apt-mark hold docker-ce docker-ce-cli && sudo apt update && sudo apt upgrade && sudo apt-mark unhold docker-ce docker-ce-cli'
|
alias upnodock='sudo apt-mark hold docker-ce docker-ce-cli && sudo apt update && sudo apt upgrade && sudo apt-mark unhold docker-ce docker-ce-cli'
|
||||||
|
|
||||||
|
alias cat='bat'
|
||||||
|
alias rg='ripgrep'
|
||||||
alias ll='ls -ahlF'
|
alias ll='ls -ahlF'
|
||||||
alias la='ls -Ah'
|
alias la='ls -Ah'
|
||||||
alias l='ls -CF'
|
alias l='ls -CF'
|
||||||
|
@ -37,8 +39,9 @@ alias dvl='docker volume ls'
|
||||||
alias dip="docker container inspect -f '{{ .NetworkSettings.IPAddress }}'" # call with <container name> or ID
|
alias dip="docker container inspect -f '{{ .NetworkSettings.IPAddress }}'" # call with <container name> or ID
|
||||||
alias dih="docker container inspect -f '{{ .Config.Hostname }}'" # call with <container name> or ID
|
alias dih="docker container inspect -f '{{ .Config.Hostname }}'" # call with <container name> or ID
|
||||||
alias dstats="docker stats "'$(sudo docker ps -aq)' # shows stats thingy for all containers
|
alias dstats="docker stats "'$(sudo docker ps -aq)' # shows stats thingy for all containers
|
||||||
alias drmsc="docker container ls -a | grep Exited | awk '{print $1}' | xargs docker container rm" # removes stopped containers
|
|
||||||
alias drmdi="docker image remove "'$(docker image ls -q -f dangling=true)' # removes non-tagged images
|
alias drmsc="docker container prune"
|
||||||
|
alias drmdi="docker image prune"
|
||||||
|
|
||||||
# docker swarm
|
# docker swarm
|
||||||
alias dss='docker stack services '
|
alias dss='docker stack services '
|
||||||
|
|
11
.bashrc
11
.bashrc
|
@ -114,3 +114,14 @@ if ! shopt -oq posix; then
|
||||||
. /etc/bash_completion
|
. /etc/bash_completion
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
|
||||||
|
if [ -z "$SSH_AUTH_SOCK" ] ; then
|
||||||
|
eval `ssh-agent -s`
|
||||||
|
# ssh-add
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# BEGIN_KITTY_SHELL_INTEGRATION
|
||||||
|
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi
|
||||||
|
# END_KITTY_SHELL_INTEGRATION
|
||||||
|
|
|
@ -27,3 +27,5 @@
|
||||||
helper = cache
|
helper = cache
|
||||||
[color]
|
[color]
|
||||||
ui = true
|
ui = true
|
||||||
|
[pull]
|
||||||
|
rebase = true
|
||||||
|
|
49
.spacemacs
49
.spacemacs
|
@ -54,7 +54,6 @@ This function should only modify configuration layer settings."
|
||||||
org-enable-roam-support t)
|
org-enable-roam-support t)
|
||||||
plantuml
|
plantuml
|
||||||
python
|
python
|
||||||
ranger
|
|
||||||
rust
|
rust
|
||||||
shell
|
shell
|
||||||
shell-scripts
|
shell-scripts
|
||||||
|
@ -248,9 +247,9 @@ It should only modify the values of Spacemacs settings."
|
||||||
dotspacemacs-default-font '("DejaVu Sans Mono"
|
dotspacemacs-default-font '("DejaVu Sans Mono"
|
||||||
:size 11
|
:size 11
|
||||||
:weight normal
|
:weight normal
|
||||||
:width normal
|
:width normal)
|
||||||
:powerline-scale 1.0)
|
|
||||||
;; The leader key
|
;; The leader key (default "SPC")
|
||||||
dotspacemacs-leader-key "SPC"
|
dotspacemacs-leader-key "SPC"
|
||||||
|
|
||||||
;; The key used for Emacs commands `M-x' (after pressing on the leader key).
|
;; The key used for Emacs commands `M-x' (after pressing on the leader key).
|
||||||
|
@ -469,7 +468,7 @@ It should only modify the values of Spacemacs settings."
|
||||||
;; performance issues, instead of calculating the frame title by
|
;; performance issues, instead of calculating the frame title by
|
||||||
;; `spacemacs/title-prepare' all the time.
|
;; `spacemacs/title-prepare' all the time.
|
||||||
;; (default "%I@%S")
|
;; (default "%I@%S")
|
||||||
dotspacemacs-frame-title-format "%I@%S"
|
dotspacemacs-frame-title-format "%I@%t %f (%p)"
|
||||||
|
|
||||||
;; Format specification for setting the icon title format
|
;; Format specification for setting the icon title format
|
||||||
;; (default nil - same as frame-title-format)
|
;; (default nil - same as frame-title-format)
|
||||||
|
@ -516,7 +515,7 @@ It should only modify the values of Spacemacs settings."
|
||||||
dotspacemacs-home-shorten-agenda-source nil
|
dotspacemacs-home-shorten-agenda-source nil
|
||||||
|
|
||||||
;; If non-nil then byte-compile some of Spacemacs files.
|
;; If non-nil then byte-compile some of Spacemacs files.
|
||||||
dotspacemacs-byte-compile t))
|
dotspacemacs-byte-compile nil))
|
||||||
|
|
||||||
(defun dotspacemacs/user-env ()
|
(defun dotspacemacs/user-env ()
|
||||||
"Environment variables setup.
|
"Environment variables setup.
|
||||||
|
@ -563,33 +562,47 @@ you should place your code here."
|
||||||
(setq org-agenda-files
|
(setq org-agenda-files
|
||||||
(quote ("~/Documents/Org/tasks.org"
|
(quote ("~/Documents/Org/tasks.org"
|
||||||
"~/Documents/Org/journal.org"
|
"~/Documents/Org/journal.org"
|
||||||
|
"~/Documents/Org/private.org"
|
||||||
"~/Documents/Org/projects.org"
|
"~/Documents/Org/projects.org"
|
||||||
"~/Documents/Org/watchlist.org"
|
"~/Documents/Org/watchlist.org"
|
||||||
"~/Documents/Org/birthdays.org")))
|
"~/Documents/Org/birthdays.org")))
|
||||||
|
|
||||||
|
(defun fschl/create-org-letter ()
|
||||||
|
"Create a new letter in ~/Documents/letters/ with filename and date"
|
||||||
|
(interactive)
|
||||||
|
(let ((name (read-string "Filename: ")))
|
||||||
|
(expand-file-name (format "%s.org" name) "~/Documents/letters/") ))
|
||||||
|
|
||||||
(setq org-capture-templates
|
(setq org-capture-templates
|
||||||
'(("t" "todo list item" ; name
|
'(("t" "todo list item" ; name
|
||||||
entry ; type
|
entry ; type
|
||||||
(file+headline org-default-notes-file "Tasks")
|
(file org-default-notes-file "Tasks")
|
||||||
"* TODO %?\n DEADLINE: %^T") ; template
|
"* TODO %?\n DEADLINE: %^T") ; template
|
||||||
("T" "todo list item with source" ; name
|
("T" "todo list item with source" ; name
|
||||||
entry ; type
|
entry ; type
|
||||||
(file+headline org-default-notes-file "Tasks")
|
(file org-default-notes-file "Tasks")
|
||||||
"* TODO %?\n %a \n DEADLINE: %^T \n %i") ; template
|
"* TODO %?\n %a \n DEADLINE: %^T \n %i") ; template
|
||||||
|
("l" "letter to Documents/letters/<datetime.org>"
|
||||||
|
entry (file fschl/create-org-letter)
|
||||||
|
"* %? \n\n * \n\n ")
|
||||||
|
|
||||||
("m" "scheduled meeting" ; name
|
("m" "Schedule a meeting"
|
||||||
entry ; type
|
entry
|
||||||
(file+headline org-default-notes-file "Tasks")
|
(file+headline org-default-notes-file "Tasks")
|
||||||
"* MEETING %?\n SCHEDULED: %^T\n %a") ; template
|
"* MEETING %?\n SCHEDULED: %^T\n %a") ; template
|
||||||
|
|
||||||
("p" "phone call" ; name
|
("p" "Schedule a phone call"
|
||||||
entry ; type
|
|
||||||
(file+headline org-default-notes-file "Tasks")
|
|
||||||
"* PHONE %?\n %i\n %a") ; template
|
|
||||||
|
|
||||||
("a" "Articles"
|
|
||||||
entry
|
entry
|
||||||
(file+weektree "~/Documents/Org/journal.org")
|
(file org-default-notes-file "Tasks")
|
||||||
"* %? \n%x \n %u\n- $?")
|
"* PHONE %?\n SCHEDULED: %^T\\n %a")
|
||||||
|
|
||||||
|
("a" "Articles: keep notes of online articles"
|
||||||
|
entry
|
||||||
|
(file+datetree "~/Documents/Org/journal.org")
|
||||||
|
"* %? \n%x \n %u\n- $?"
|
||||||
|
:tree-type month
|
||||||
|
:kill-buffer t
|
||||||
|
:empty-lines-before 1)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue