summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc6
-rw-r--r--.profile6
-rw-r--r--.vimrc1
-rwxr-xr-xbin/journeuf15
-rwxr-xr-xbin/noaccent2
5 files changed, 27 insertions, 3 deletions
diff --git a/.bashrc b/.bashrc
index 29f5685..cb5d13e 100644
--- a/.bashrc
+++ b/.bashrc
@@ -35,7 +35,7 @@ case $OS in
(Darwin)
# alias ibrew='arch -x86_64 /usr/local/bin/brew'
. /opt/local/etc/profile.d/bash_completion.sh
- . /opt/local/share/fzf/shell/completion.bash
+ # . /opt/local/share/fzf/shell/completion.bash
alias ls='ls -GF' ll='ls -AlGFhv'
alias ldd='otool -L'
trap 'printf "\e]2;%s\a" "$TERM_TAG ${BASH_COMMAND%update_terminal_cwd}"' DEBUG
@@ -112,7 +112,7 @@ meteo() {
curl -H "Accept-Language: fr" --compressed "$request"
}
-#eval "$(fzf --bash)" >/dev/null
+eval "$(fzf --bash)" >/dev/null
# Handle missing commands, unless already provided.
type -t command_not_found_handle >/dev/null || command_not_found_handle() {
@@ -127,3 +127,5 @@ type -t command_not_found_handle >/dev/null || command_not_found_handle() {
# Display git status in prompt
. ~/.bash-powerline.sh
+
+. "$HOME/.cargo/env"
diff --git a/.profile b/.profile
index 0d2b5f5..550db7f 100644
--- a/.profile
+++ b/.profile
@@ -5,7 +5,7 @@ export LC_ALL=C
case $OS in
(arch|alpine)
- PATH=~/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/go/bin
+ PATH=~/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/go/bin:~/.local/bin
export XDG_RUNTIME_DIR=/run/user/$(id -u)
;;
(fedora-asahi-remix)
@@ -33,3 +33,7 @@ case $SHELL in
esac
[ "$(tty)" = /dev/tty1 ] && [ -x /usr/bin/sway ] && exec dbus-run-session -- sway || true
+
+if [ -f "$HOME/.cargo/env" ]; then
+ . "$HOME/.cargo/env"
+fi
diff --git a/.vimrc b/.vimrc
index 738ff3d..1eae08b 100644
--- a/.vimrc
+++ b/.vimrc
@@ -197,6 +197,7 @@ noremap ge :e <cword>
" create a tag entry for current filename
" noremap gt :!echo "% % 1" >> tags; LC_ALL=C sort -o tags -u tags
noremap <leader>t :!echo "% % 1" >> tags; LC_ALL=C sort -o tags -u tags
+noremap <leader>j :r!journeuf
noremap 
noremap ,, 
autocmd BufNewFile,BufRead ~/src/notes/* set autowrite
diff --git a/bin/journeuf b/bin/journeuf
new file mode 100755
index 0000000..6ad78b5
--- /dev/null
+++ b/bin/journeuf
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# Ajoute une entrée dans le fichier journal du mois et tag
+an=$(date +%Y)
+mois=$(date +%m)
+jour=$(date +%d)
+js=$(LC_TIME=fr_FR date +%A | awk '{print toupper(substr($0,1,1)) substr($0,2)}')
+ms=$(LC_TIME=fr_FR date +%B | awk '{print toupper(substr($0,1,1)) substr($0,2)}')
+file=$(echo "Journal${ms}$an" | noaccent)
+if [ -f tags ]; then
+ tagline="${an}_${mois}_${jour} $file /$js $((0+jour))"
+ echo "$tagline" >> tags
+ LC_ALL=C sort -o tags -u tags
+fi
+echo "$js $((0+jour))"
diff --git a/bin/noaccent b/bin/noaccent
new file mode 100755
index 0000000..a780194
--- /dev/null
+++ b/bin/noaccent
@@ -0,0 +1,2 @@
+#!/bin/sh
+sed 'y/àáâãäåèéêëìíîïòóôõöùúûüýÿçñàáâãäåèéêëìíîïòóôõöùúûüýÿçñ/aaaaaaeeeeiiiiooooouuuuyyçnaaaaaaeeeeiiiiooooouuuuyyçn/'